Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select a row in a DataGridView Programmatically? 1

Status
Not open for further replies.

Amesville

Programmer
Oct 10, 2011
93
US
I am pretty sure I've done this before - how can I select a row in a DataGridView Programmatically, assuming I can identify the row based on the contents of one of the columns?
 

DataGridView1.Rows(RowIndex).Selected = True

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Ah! Much more elegant than the solution I came up with, thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top