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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Excel like keyboard navigation for GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

96805 Oct 7,2010 07:11 AM UTC Oct 11,2010 01:23 PM UTC WinForms 1
loading
Tags: GridControl
nazmi anuar
Asked On October 7, 2010 07:11 AM UTC

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 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


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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

;