-
October 22nd, 2008, 09:32 AM
#1
Re: Setting Selected Index on DataGridView Combobox
i want to set tabindex for datagridview cell how to solve this problems
-
October 22nd, 2008, 09:44 AM
#2
Re: Setting Selected Index on DataGridView Combobox
-
October 22nd, 2008, 10:03 AM
#3
Re: Setting Selected Index on DataGridView Combobox
As far as I'm aware, you can't change the tab order of cells in a DataGridView - the DataGridViewCell does not have a TabIndex property to start with.
Is there any reason you wish to do so - I can't think of a situation where you want to go in any other order than Row and Columns or Columns and Rows...
Help from me is always guaranteed!*
VB.NET code is made up on the spot with VS2008 Professional with .NET 3.5. Everything else is just made up on the spot.
Please Remember to rate posts, use code tags, send me money and all the other things listed in the "Before you post" posts.
*Guarantee may not be honoured.
-
October 23rd, 2008, 12:34 AM
#4
Re: Setting Selected Index on DataGridView Combobox
You could always manipulate the DataGridView.CurrentCell property upon pressing of the Tab key, something like :
Code:
DataGridView1.CurrentCell = DataGridView1.Item(column, row)
Of course, this assumes you already determined that Tab was pressed.
But why is this necessary ¿
-
December 28th, 2010, 05:42 AM
#5
Re: TabIndex on DataGridView Cell
One way is that you try to capture KeyDown event on DataGridView and then manipulate the CurrentCell using Hannes idea. The other way might be to override 'ProcessCmdKey' method on grid.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|