This is a migrated thread and some comments may be shown as answers.

Initial value for GridViewMultiComboboxColumn

1 Answer 109 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Luiz Fernando
Top achievements
Rank 1
Luiz Fernando asked on 20 Dec 2013, 12:32 PM
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.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 21 Dec 2013, 10:38 AM
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 >>
Tags
GridView
Asked by
Luiz Fernando
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or