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.

Tabbing out of a grid

Thread ID:

Created:

Updated:

Platform:

Replies:

12594 Apr 3,2004 06:43 PM Apr 4,2004 09:12 AM Windows Forms 1
loading
Tags: GridControl
Andy
Asked On April 3, 2004 06:43 PM

I have a grid with 1 column and an adjacent large text box with rich text corresponding to the selected row in the grid. Using the currency manager of the grid I bind to the text box at the same time. I want the user to be able to hit tab to get from the grid to the main text box. I have managed to do this with ''Return'' but cant figure out how to do it with tab because Tab is a special key code or something. How can I intercept the tab key press correctly? -andy ------------------- private void gridNoteList_CurrentCellKeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == Keys.Return || e.KeyCode == Keys.Enter || e.KeyCode == Keys.Tab) { SetFocusAtEndOfMainTextBox(); } }

Administrator [Syncfusion]
Replied On April 4, 2004 09:12 AM

Hi Andy, By default, the grid uses the tab key to move from cell to cell. But if you want the tab key to move from control to control on your form, then you can set the WantTabKey property. this.gridControl1.WantTabKey = false; If you want to capture the TAB key when the current cell is in edit mode, you have to overide either the ProcessCmdKey or ProcessDialogKey as shown in this KB article. http://www.syncfusion.com/Support/article.aspx?id=10441 Regards, Jay N

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.

;