User Tools

Site Tools

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.

TAGS

  • 3 person(s) visited this page until now.

Permalink blog/2024-12-11-001.txt · Last modified: 2024/12/11 09:09 by jethro

oeffentlich