We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Shortcut keys in grid

Hi,

Is there any shortcut key in databound grid to take the cursor to first cell of the next row.

Thanks,
-Ravi.

1 Reply

HA haneefm Syncfusion Team April 12, 2007 03:18 PM UTC

Hi Ravi,

Is there any shortcut key in databound grid to take the cursor to first cell of the next row?
>>>>>
No, there is no support for this. But one way you can do this by handling the CurrentCellKeyDown event of the grid and move the current cell and it's cursor to next row of the first cell in a grid. Here is a code snippet to show this.

void gridDataBoundGrid1_CurrentCellKeyDown(object sender, KeyEventArgs e)
{
if (e.KeyData == Keys.F7)
{
e.Handled = true;
GridDataBoundGrid grid = sender as GridDataBoundGrid;
int CurrentRow = grid.CurrentCell.RowIndex;
grid.CurrentCell.MoveTo(CurrentRow + 1, 1);
grid.CurrentCell.BeginEdit(true);
}
}

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon