Combobox default Item

Hi,

In the grid one of the celltype is combo box. I just need to set the first item as the default item after loading the combobox items. Any pointers to the code

Thanks in advance,

1 Reply

RA Rajagopal Syncfusion Team July 27, 2007 11:08 PM UTC

Hi,

You could set the Text property of the GridStyleInfo object for the cell to be some value in the combobox items. Try code like,

this.gridControl1[row, col].CellType = "ComboBox";
this.gridControl1[row, col].ChoiceList = items;
this.gridControl1[row, col].Text = items[0].ToString();

Let us know if this helps.

Thanks for your interest in Syncfusion Products.
Regards,
Rajagopal

Loader.
Up arrow icon