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

GDBG CTRL-UP

Hi,
By default the gdbg moves to first row or last row when I press the ctrl-up/down.
How can I disable it ?

Thanks
Simon

1 Reply

AD Administrator Syncfusion Team January 10, 2007 07:46 PM UTC

Hi Simon,

This is an expected behavior, if you dont want this behavior handle the MoveCurrentCellDirection event to do what you needed. Below is the code.

this.gridDataBoundGrid1.MoveCurrentCellDirection += new GridMoveCurrentCellDirectionEventHandler(gridDataBoundGrid1_MoveCurrentCellDirection);
private void gridDataBoundGrid1_MoveCurrentCellDirection(object sender, GridMoveCurrentCellDirectionEventArgs e)
{
if(e.Direction == GridDirectionType.Top || e.Direction == GridDirectionType.Bottom)
e.Handled = true;
}

Regards,
Rajagopal

Loader.
Live Chat Icon For mobile
Up arrow icon