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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Shortcut keys in grid

Thread ID:

Created:

Updated:

Platform:

Replies:

59429 Apr 12,2007 03:00 PM UTC Apr 12,2007 03:18 PM UTC Windows Forms 1
loading
Tags: GridControl
Ravi
Asked On April 12, 2007 03:00 PM UTC

Hi,

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

Thanks,
-Ravi.

haneefm [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;