c# wpf datagrid selected row index code example Example: c# datagridview selected row index datagridview.CurrentCell.RowIndex