Combo box cell displays an editable drop-down list within a cell. Users can expand the drop-down list by clicking the drop-down button, by pressing the F4, or Alt + Down arrow.
You can configure a combo box cell using the methods and properties of the ComboBoxCellType class in the GrapeCity.Wpf.SpreadSheet.CellType namespace. There are two primary methods of configuring items in a combo box cell:
The following sample code binds a combo box cell to a ProductCollection().
The following example code sets items in a combo box cell that are not bound to a data source.
Additionally, the drop-down list of a combo box cell can also display items in multiple columns. To enable the multi-column feature of a combo box cell and display items in multiple columns within the drop-down list, set the UseMultipleColumn property to true.
The following example code binds a combo box cell to a CellTypeCollection and enables the multi-column feature.