ComboBox cell type in GGC

Hi,

How can I set the text of ComboBox cell in GGC at runtime?

Thanks,
Awanish Kaul

2 Replies

JJ Jisha Joy Syncfusion Team June 29, 2009 12:53 PM UTC

Hi Awanish,


You could have combobox cells inside GridGroupingControl by setting the CellType to ComboBox and specifying the ChoiceList. See the code:
StringCollection sc = new StringCollection();
sc.Add("One");
sc.Add("two");
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.CellType = "ComboBox";
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.ChoiceList = sc;

Let me know if this helps.

Regards,
Jisha


AW Awanish June 30, 2009 07:34 AM UTC

Thanks Jisha.

Loader.
Up arrow icon