There is theRowIndexproperty for theCurrentCellproperty for the DataGridView.
datagridview.CurrentCell.RowIndex
Handle theSelectionChangedevent and find the index of the selected row as above.
Liked By
Write Answer
How to get the Index of Currently Selected Row in DataGridView using C#
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Join MindStick Community
You have need login or register for voting of answers or question.
Dag Hammarskjold
05-Oct-2013There is the RowIndex property for the CurrentCell property for the DataGridView.
Handle the SelectionChanged event and find the index of the selected row as above.