DataGridView : active-row versus Selected-row ???

C

cc

Hi,

using the DataGridView (.NET 2005) :
after I fill the Grid with some records is the first record highlighted
(selected).

When I programmatically select the 2nd row in the Grid and deselect the
first one by executing
dataGridView1.Rows[0].Selected = false
dataGridView1.Rows[1].Selected = true

is the activerow still the first one.
Can be seen because of the triangle that is shown in the Grid in front of
the first row.

How can I set the 2nd row as activerow ?

thnx
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top