In order to have a combo box in a specified column in WinForms GridGroupingControl, the required column name should be assigned the cell type as ComboBox. This can be done by changing the column’s Appearance through the TableDescriptor property.
C#
// Specify the Column name to add the combo box.
gridGroupingControl1.TableDescriptor.Columns["Description"].Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.ComboBox;
StringCollection list = new StringCollection();
list.Add("Quartz");
list.Add("Ruby");
list.Add("Saphire");
list.Add("Emerald");
list.Add("Diamond");
list.Add("Graphite");
// Specify the required list to be displayed in the drop down.
gridGroupingControl1.TableDescriptor.Columns["Description"].Appearance.AnyRecordFieldCell.ChoiceList = list;VB
' Specify the Column name to add the combo box.
gridGroupingControl1.TableDescriptor.Columns("Description").Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.ComboBox
Dim list As New StringCollection()
list.Add("Quartz")
list.Add("Ruby")
list.Add("Saphire")
list.Add("Emerald")
list.Add("Diamond")
list.Add("Graphite")
' Specify the required list to be displayed in the drop down.
gridGroupingControl1.TableDescriptor.Columns("Description").Appearance.AnyRecordFieldCell.ChoiceList = listThe screenshot below shows the combobox column.
