Initial value for GridViewMultiComboboxColumn

2 posts, 0 answers
  1. Luiz Fernando
    Luiz Fernando avatar
    1 posts
    Member since:
    Nov 2013

    Posted 20 Dec 2013 Link to this post

    Hello people,

    I have a Gridview with a column multicombobox can load it correctly, but I want to start the program that she got given initial value.

    How do I have an initial default value for this combobox in the grid?

    Thank you.
  2. Stefan
    Admin
    Stefan avatar
    2911 posts

    Posted 21 Dec 2013 Link to this post

    Hi Fernando,

    Thank you for writing.

    Once you have populated the GridViewMultiComboBoxColumn with data, in order for a cell to display a value from the column data source, you should set the cell Value property to a corresponding value. For example your column have values "val1", "val2", "val3", and you want the cell in the first row to show "val2", you just need to set its Value property:
    radGridView1.Rows[0].Cells["YourMultiColumnComboBoxColumnName"].Value = "val2";

    I hope this helps.

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top