AD
Administrator
Syncfusion Team
February 26, 2007 09:59 PM UTC
Hi Ivan,
You can handle the CurrentCellKeyDown event of the grid and call the CurrentCell.EndEdit() method to finish up editing mode of the grid.
private void gridControl1_CurrentCellKeyDown(object sender, KeyEventArgs e)
{
if( e.KeyData == Keys.Enter)
{
GridControl grid = sender as GridControl;
GridCurrentCell cc = grid.CurrentCell;
if( cc.ColIndex == grid.ColCount && cc.IsEditing )
cc.EndEdit();
}
}
Best regards,
Haneef