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