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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Tabbing out of a grid

Thread ID:





12594 Apr 3,2004 11:43 PM UTC Apr 4,2004 01:12 PM UTC WinForms 1
Tags: GridControl
Asked On April 3, 2004 11:43 PM UTC

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 01:12 PM UTC

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


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon