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