I’ve got a simple WinForm app which has a DataGridView on it. When the user clicks -anywhere- along the row results, I’m hoping to retrieve the value of the first column (i’ll hard code that) which happens to be the ID of that row.
Anyone have any suggestions to how I can do this?
Lets assume the ID of the gridview is DataGridView1 <– Bonus points for using the autoegenerated Id’s 😛
You can also use
CellMouseClickevent handler and use the same code.I hope you know how to get the event handlers.