How do you add and populate drop/combos on GGC cells?

Hello,
I have a GGC for which I've enabled the AddNewRecord feature. I'd like to have provide predetermined choices for selected cells and list them in a drop down. Other values are typed in by the user. Do you have any suggestions?

Thanks,
Dimitri

1 Reply

AD Administrator Syncfusion Team February 23, 2007 11:02 PM UTC

Hi Dimitri,

Thank you for being patience.

The following is a technique to have combobox in the GridGroupingControl. Please try it and let us know if you need any further assistance.

By Code:
>>>>>>>
StringCollection collection = new StringCollection();
collection.AddRange(new string[] {"One","Two","Three","Four"});
GridTableDescriptor tableDesc = this.gridGroupingControl1.TableDescriptor;
tableDesc.Columns[“Col1”].Appearance.AnyRecordFieldCell.CellType = "ComboBox";
tableDesc.Columns[“Col1”].Appearance.AnyRecordFieldCell.DataSource = collection;
>>>>>>>

By Design time:
>>>>>>
Please refer to the following video clip to set the dropdown in the designer mode.
VideoClip_ComboBox_GGC.zip
>>>>>>

Have a nice day.

Best regards,
Madhan

Loader.
Up arrow icon