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