DataGridView question

  • Thread starter Thread starter Kenny Stultz
  • Start date Start date
K

Kenny Stultz

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
 
Kenny said:
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.
 
The dataGridView has a CurrentCell, CurrentCellAddress, and CurrentRow
properties. These should let you choose which cell gets highlighted.

Thank you very much. CurrentCell was the ticket.

Kenny
 
Back
Top