In my View Model, I define a ObservableCollection and bind it to to ItemSource of XamGrid.
The objects in the collection has assoication class for lookup.( I use EF and Ria Service, objects in collection is Entity)
Then I try to implement IEditableObject on VM, but I can't get those assoication back for undo.
I also try to replace ObservableCollection to PagedCollectionView, but this one give me error when I try to insert row in xamgrid with following code:
xamgrid.Rows.Add(row);
So what's the simple way to allow XamGrid with IEditableObject implementation so that user can redo/undo for editing?
Hello,
Were you able to resolve your issue?
Valerie
Thanks. It's hard to resolve it in VM, not in UI or code-behind.Finally I discard the solution at client side, and use reloading data for Undo.