Excel like keyboard navigation for GDBG

Hi there,
How can I set the GridDataBoundGrid keyboard navigation to behave like the one in Excel.
meaning when click Enter it move to the next row,
and when user press Tab at the last column it will move to the first column of the next row.

thanks.


1 Reply

NR Nirmal Raja Syncfusion Team October 11, 2010 01:23 PM UTC

Hi Nazmi,

Thank you for your interest in Syncfusion products.

The KeyDown event and the MoveTo method can be used to move the focus with our control.

Private Sub gridControl1_CurrentCellKeyDown(ByVal sender As Object, ByVal e As KeyEventArgs)
If e.KeyCode = Keys.Enter Then
gridControl1.CurrentCell.MoveDown()
Else If e.KeyCode = Keys.Tab Then
gridControl1.CurrentCell.MoveDown()
End If
End Sub


Let me know if you have any concern.

Regards,
Nirmal


Loader.
Up arrow icon