Home › Forums › WinForms controls › Xceed Grid for WinForms › trouble using GridComboBox as CellViewer › Reply To: trouble using GridComboBox as CellViewer
The reason you would use a ComboBox as a CellViewer, is if you don’t want to display the actual value of the cell, but a mapped value.
Example: you have a column where the values are IDs of employees. You don’t want to display an employee’s ID, but the name of the employee with that ID.
The ComboBox is bound to a DataTable with employee-data, where the ID-column is the <i>ValueMember</i> of the ComboBox, and the Name-column is the <i>DisplayMember</i> of the ComboBox.
If you use such a GridComboBox as CellViewer of a column, and that column contains employee IDs, the GridComboBox will display the corresponding Names of those IDs.
Imported from legacy forums. Posted by Tommy (had 302 views)