Home Forums WinForms controls Xceed Grid for WinForms GridCombo bound to Grid

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #14711 |

    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)

    User (Old forums)
    Member
    Post count: 23064

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.