blog:2024-12-11-001
2024-12-11 C#: Index of Currently Selected Row in DataGridView
Solution
There is the RowIndex property for the CurrentCell property for the DataGridView.
datagridview.CurrentCell.RowIndex
Handle the SelectionChanged event and find the index of the selected row as above.
blog/2024-12-11-001.txt · Last modified: 2024/12/11 09:09 (external edit)