Home All Groups Group Topic Archive Search About

DataGridView question

Author
4 Dec 2006 7:29 PM
Kenny Stultz

Author
4 Dec 2006 7:37 PM
lord.zoltar
Kenny Stultz wrote:
> I am using a DataGridView control in the unbound mode.  When the form is first
> shown, the upper left cell is highlighted.  How can I make some other cell
> highlighted when the form is first shown.
>
> In VB 6 I used to use code like:
>    DBGrid1.Row = 3
>    DBGrid1.Col = 4
>
> What is the equivalent in VB2005?
>
> TIA,
> Kenny

The dataGridView has a CurrentCell, CurrentCellAddress, and CurrentRow
properties. These should let you choose which cell gets highlighted.
Author
4 Dec 2006 9:05 PM
Kenny Stultz