I am using the event “CurrentCellValidating” to do some validations.
I get the value entered in the cell as follows:
string newValue = grid.CurrentCell.Renderer.ControlText;
Sometimes I might want to change the data entered by the user; like adding a text.
grid.CurrentCell.Renderer.ControlText = “$ “ + newValue;
If the user presses the “Enter” key, it works fine, but if the user presses an arrow key to move to another cell, the cell displays the edited text but does not exit the editing mode. If the arrow key is pressed again, the cell value is cleared.
If the text is not modified in the event, the arrow keys work fine.