Home Forums WinForms controls Xceed Grid for WinForms commit changes made in a datagrid Reply To: commit changes made in a datagrid

User (Old forums)
Post count: 23064

First, to commit a row or a cell value, the user must leave the editing mode. That is a normal behavior. It you want to change this behavior, you can monitor the text that is typed by the user in the cell, and then make the changes you wish accordingly.

For the second issue, this should work as it is. When the focus goes to the other control, the LeavingEdit event should be trigged, and your code executed.

However, you can handle the Leave event on the GridControl, and in the handler, call the EndEdit method on the CurrentRow, so the cell leaves edition.


void gridControl1_LostFocus( object sender, EventArgs e )
( ( CellRow )gridControl1.CurrentRow).EndEdit();

Imported from legacy forums. Posted by André (had 3175 views)