I have a grid with :
– a comment column (default xceed text editor is used)
– a column which has a specific cell editor manager. (template control is TotoControl)
The comment column is bound to “Commentaire” member of the current row’s object. I manage to edit the content of the cell, it persists when I hit enter or tab, and cancels when i press escape.
What i can see with Reflector is that ESC key is handled in the GridControl and EndEdit(false) is called in your CellEditorManagerCore. Enter or Tab key triggers EndEdit(true) I guess.
My problem comes with my custom editor. I have SelectedItem property of the control bound to “Toto” member of the current object bound to the current row. The component works as it should, the SelectedItem is set in Toto member when my mouse clicks the next cell.
But I can’t manage to get ESC key working and cancel current editing (Maybe the ESC is not handled on the grid since focus is on my template control ?). Tabulation key works in the way that it selects “next control” and the focus comes back to the grid. My problem is to get ESC key working and cancels current edition. Is it possible ? (By handling key down on my control and sending it to the grid ?)
Imported from legacy forums. Posted by Charles (had 2636 views)