I have a WPF DataGrid that shows some data records (bounded to an ObservableCollection).
When the user clicks \"Edit\" button, the currend selected row
Assuming WPF:
Then this code will work:
dg.CurrentCell = new DataGridCellInfo(dg.Items[i], dg.Columns[j]); dg.BeginEdit();