Get row in DataGridView, how??

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

..NET 2.0

How do I in the double-clicked event of a DataGridView controller get the
row number of the row double-clicked??..

I just trying to get a value from this row....

any suggestions?

Jeff
 
Hello Jeff,

You must handle the CellDoubleClick event. Then use the DataGridViewCellEventArgs
object and access the RowIndex property to get the current row index

Regards
Martin
 

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

Back
Top