index of selected row datagridview c# code example
Example 1: c# datagridview selected row index
datagridview.CurrentCell.RowIndex
Example 2: c# datagridview select row index programmatically
dataGrid.Rows[index].Selected = true;
datagridview.CurrentCell.RowIndex
dataGrid.Rows[index].Selected = true;