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