how to get current row datagridview c# code example Example: c# datagridview selected row index datagridview.CurrentCell.RowIndex