How to use a ComboBox in a cell in WinForms GridControl?
Combobox in a grid cell
The control type of a cell is a part of the cell style that is determined by the GridStyleInfo.CellType property. To have a ComboBox cell in a grid, set the cell type to ComboBox. The items in the ComboBox are held in the style’s DataSource property.
//String collection to set the data source/choice list for the ComboBox
StringCollection items = new StringCollection();
items.Add("One");
items.Add("Two");
items.Add("Three");
items.Add("Four");
items.Add("Five");
//Set the cell type as ComboBox cell.
gridControl1[2, 3].CellType = "ComboBox";
//Set datasource for the combobox cell
gridControl1[2, 3].DataSource = items;
gridControl1[2, 3].CellValue = "Five";
gridControl1[2, 3].ExclusiveChoiceList = true;
//By using StyleInfo
GridStyleInfo style = new GridStyleInfo();
//Set cell type as ComboBox cell.
style.CellType = "ComboBox";
style.DataSource = items;
style.CellValue = "Five";
//Apply ComboBox cell style usign ChangeCels method
gridControl1.ChangeCells(GridRangeInfo.Cell(2, 4), style);'String collection to set the data source/choice list for the ComboBox
Dim items As New StringCollection()
items.Add("One")
items.Add("Two")
items.Add("Three")
items.Add("Four")
items.Add("Five")
'Set the cell type as ComboBox cell.
gridControl1(2, 3).CellType = "ComboBox"
'Set datasource for the combobox cell
gridControl1(2, 3).DataSource = items
gridControl1(2, 3).CellValue = "Five"
gridControl1(2, 3).ExclusiveChoiceList = True
'By using StyleInfo
Dim style As New GridStyleInfo()
'Set cell type as ComboBox cell.
style.CellType = "ComboBox"
style.DataSource = items
style.CellValue = "Five"
'Apply ComboBox cell style usign ChangeCels method
gridControl1.ChangeCells(GridRangeInfo.Cell(2, 4), style) The
screenshot below displays the ComboBox cell in a Grid

Figure 1: ComboBox cell in a grid.
Note:
The GridCellTypeName class has a collection of properties for the cell types. By using the ChoiceList property, you can also set the source to the ComboBox.
Samples:
C#: ComboBoxCell
VB: ComboBoxCell
Conclusion
I hope you enjoyed learning about how to use a ComboBox in a cell in WinForms GridControl.
You can refer to our WinForms GridControl feature tour page to know about its other groundbreaking feature representations and WinForms GridControl documentation, and how to quickly get started for configuration specifications.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!