Reputation: 201
When I click on a row I should get the value on which the user is clicked
How do I get that?
Upvotes: 1
Views: 682
Reputation: 959
If the grid's SelectionMode is set to FullRowSelect or FullHeaderSelect, you can get the selected row(s), using
Then for each row you can use the Cells property to get the values.
There are a wide variety of ways to get at the underlying data set.
Upvotes: 0
Reputation: 48537
If I have understood you correctly, then you'll want the SelectedIndexChanged event.
Upvotes: 1