c# datagridview select row by index 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;