Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to use the tab key in datagridview.if first cell i show the textbox control but when i press the tab key it should display in next cell combobox in datagridview cell in vb.net
Posted
Comments
Kschuler 27-Nov-13 15:24pm    
If I put a DataGridView on a form, setup a textbox column and then a comobox column, then run my app, type in the first cell, then hit tab...it moves focus to the combobox column. Is yours not doing that? If it isn't, then could you provide any settings that you've put on the DataGridView? Maybe one of them has changed the way it functions? Otherwise, please be more specific and walk us through your problem.
CHill60 27-Nov-13 17:07pm    
On your datagridview do you have the property StandardTab set to True? If so try setting it to false
Maciej Los 28-Nov-13 16:18pm    
Please, post it as an answer ;)
CHill60 28-Nov-13 16:54pm    
Done!

1 solution

On a DataGridView you will get this behaviour if the property StandardTab is set to True. Set it to false and you should see the tab key move you correctly through the grid
 
Share this answer
 
Comments
Maciej Los 28-Nov-13 16:55pm    
5ed!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900