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.

TAB key in DataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

24421 Feb 3,2005 11:15 AM Feb 3,2005 05:37 PM Windows Forms 4
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 3, 2005 11:15 AM

How could I make the TAB key to move to the next row in a DataBoundGrid? Currently my DataBoundGrid has the "LitBoxSelectionMode" set to One so that each time user clicks on the grid the row gets selected. I also set e.ColIndex = 0; in CurrentCellActivating. The grid works nicely, but the tab key does not work. I would like to have the tab key move to the next row. I tested the sample code in the following Knowledgebase Issue: Q10441 - Info: How do I catch the "TAB" key when the current cell is in edit mode? The code in ProcessCmdKey did not execute when I pressed the TAB key. How could I catch the TAB key? Thnak you, Marju

Administrator [Syncfusion]
Replied On February 3, 2005 11:16 AM

Marju, Try also setting grid.WantsTabKey = false Stefan >How could I make the TAB key to move to the next row in a DataBoundGrid? > >Currently my DataBoundGrid has the "LitBoxSelectionMode" set to One so that each time user clicks on the grid the row gets selected. I also set e.ColIndex = 0; in CurrentCellActivating. The grid works nicely, but the tab key does not work. I would like to have the tab key move to the next row. > >I tested the sample code in the following Knowledgebase Issue: Q10441 - Info: How do I catch the "TAB" key when the current cell is in edit mode? The code in ProcessCmdKey did not execute when I pressed the TAB key. How could I catch the TAB key? > >Thnak you, Marju

Administrator [Syncfusion]
Replied On February 3, 2005 11:27 AM

Hi Stefan, I tried setting grid.WantsTabKey = false, but the code in ProcessCmdKey did not run. Is there a different way to handle the TAB key? I''m also setting e.ColIndex = 0; in CurrentCellActivating. Does this make a diference? (I already tried the code with out e.ColIndex = 0, but ProcessCmdKey did not run) Thank you, Marju >Marju, > >Try also setting > >grid.WantsTabKey = false > >Stefan > >>How could I make the TAB key to move to the next row in a DataBoundGrid? >> >>Currently my DataBoundGrid has the "LitBoxSelectionMode" set to One so that each time user clicks on the grid the row gets selected. I also set e.ColIndex = 0; in CurrentCellActivating. The grid works nicely, but the tab key does not work. I would like to have the tab key move to the next row. >> >>I tested the sample code in the following Knowledgebase Issue: Q10441 - Info: How do I catch the "TAB" key when the current cell is in edit mode? The code in ProcessCmdKey did not execute when I pressed the TAB key. How could I catch the TAB key? >> >>Thnak you, Marju

Administrator [Syncfusion]
Replied On February 3, 2005 03:50 PM

Hi Marju, Here is some code snippet to handle this in grid''s keydown. private void gridDataBoundGrid1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if(e.KeyCode == Keys.Tab) { this.gridDataBoundGrid1.CurrentCell.MoveDown(1, false); } } Regards, Jay N

Administrator [Syncfusion]
Replied On February 3, 2005 05:37 PM

Thank you. The code works great. Marju

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.

;