how to get a row only by the row index in a datagridview C# code example Example: c# datagridview selected row index datagridview.CurrentCell.RowIndex