How to move in datagrid using Enter key?
Printable View
How to move in datagrid using Enter key?
DataGridCell current= dataGrid.CurrentCell;
if(current.ColumnNumber < 2)
dataGrid.CurrentCell= new
DataGridCell(current.RowNumber,current.ColumnNumber + 1)
// else by default if I do nothing it should create a new row and put me at
the first cell.
:confused:
If you want to move to the next record then try handle the Enter key using related events.