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