Setting Focus in DataGridView

Tyecom

Well-known member
Joined
Aug 8, 2007
Messages
78
Programming Experience
Beginner
I have two columns in a datagridview. When opening the form, I would like the focus to be on the first row in the second column. I also would like the the tab order to be in the second column only. Is there a way to do this?
Thanks in advance.
 
The first part is just a matter of setting the CurrentCell property in the form's Shown event handler. The second part is not possible as far as I'm aware, unless you write code yourself to detect a tab key press and set the CurrentCell yourself.
 
Back
Top