Home › Forums › WinForms controls › Xceed Grid for WinForms › GridCombo bound to Grid
I have a GridCombo that is bound to a grid column:
Private grdcmbOperation As GridComboBox = New GridComboBox ….(combo gets created & bound to a datatable) grdcmbOperation.DropDownStyle = ComboBoxStyle.DropDown … grdRoutOp.Columns(“Operation”).CellEditor = grdcmbOperation grdRoutOp.Columns(“Operation”).CellViewer = grdcmbOperation
This works fine if the user picks a value that exists in the combo, but if they type in some new value that is not in the combo, the cell goes blank when the leave the cell, and their entry is lost.
Does anyone have an idea what I might be doing wrong?
Imported from legacy forums. Posted by Ron (had 2003 views)
This issue was resolved by using the CellEditorManager class that is available from version 3.0 and up.
e.g. :<i>Dim comboEditor As New Xceed.Grid.Editors.ComboBoxEditor
GridControl1.Columns(0).CellEditorManager = comboEditor</i>
Imported from legacy forums. Posted by André (had 2930 views)