Need to get an Index in Combo...

Hi,

I have a combo celltype and I assigned a datasource to it. Once the form loaded with the combo, I need to point to a particular index in the combo. How should I do it.

Please help me out.

Thanks & Regards,
Sathish.

1 Reply

AD Administrator Syncfusion Team August 9, 2006 06:33 AM UTC

Hi Sathish,

To assign the value in a Combobox cell, you need to set the cellvalue property of the Combobox cell in grid. Here is a sample code snippet.

this.gridControl1[4, 2].CellType = "ComboBox";
this.gridControl1[4, 2].ChoiceList = sc;
this.gridControl1[4, 2].CellValue = "Two";

Here is a sample.

Thanks,
Srividhya

ComboBoxCell.zip

Loader.
Up arrow icon