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.

Excel like keyboard navigation for GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

96805 Oct 7,2010 03:11 AM Oct 11,2010 09:23 AM Windows Forms 1
loading
Tags: GridControl
nazmi anuar
Asked On October 7, 2010 03:11 AM

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.


Nirmal Raja [Syncfusion]
Replied On October 11, 2010 09:23 AM

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


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.

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.

;