I make changes to the DataGrid. I process event:

private void dataGrid_RowEditEnding(object sender, DataGridRowEditEndingEventArgs e) { DataGrid grid = (DataGrid)sender; MessageBox.Show((e.Row.Item as Shelf).Id + " " + (e.Row.Item as Shelf).Name); } 

in the DataGridRowEditEndingEventArgs e object, only the old value, in the grid itself, too.

Where to looking for?

  • one
    grid.Items.OfType <Shelf> (). FirstOrDefault (shelf => shelf.Id == ((Shelf) e.Row.Item) .Id) So you did not try? - Pleshkov Ivan
  • 3
    And did not try to look into the grid after CommitEdit ? - VladD

0