get cell index from datagridview rows c# code example Example: c# datagridview selected row index datagridview.CurrentCell.RowIndex