how to set values for a combobox in a gridgrouping control

hi,

I am trying to insert values for a combobox in a gridgroupingcontrol.

this.GridAdminUser.TableDescriptor.Columns[2].
...
could anyone please help me with it.

Thanks,
Sri




1 Reply

RS Rajarajeswari S Syncfusion Team December 3, 2007 08:18 AM UTC



Hi Sri,

You can set the value for the Combo box in GGC by assigning DataSource property to the particular column. Please refer the below code snippet which illustrates this.


this.GridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.CellType = "ComboBox";
StringCollection rows = new StringCollection();
//Points to first index of combo box item. Does nothing even if it got selected.
rows.Add("John"); rows.Add("James"); rows.Add("Christy");
GridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.DataSource = rows;

Please refer the sample from the below link which illustrates the above:

http://websamples.syncfusion.com/samples/Grid.Web/6.1.0.23/F70197_new/main.htm

Regards,
Raji



Loader.
Up arrow icon