0

I have a grid that is displaying some data, each row corresponding to an object (Dataset being: IEnumerable<Object> MyObject). The user is able to update the data but would also like to give him the possibility to undo these changes.

I was going to code my own method saving first on the side any object that is modified by the user, ready to rollback to the original state if needed, but wondering if there is something already available in the .Net framework does that?

Furkan Ekinci
  • 2,472
  • 3
  • 29
  • 39
goul
  • 813
  • 1
  • 13
  • 32
  • I [asked a similar question](http://stackoverflow.com/questions/16795692/cancelling-all-changes-and-setting-back-to-initially-data-through-deep-copy) a few days ago. – Furkan Ekinci May 31 '13 at 05:49

1 Answers1

0

SO you might want to look into the IEditableObject interface.

There is nothing built in(that i'm aware of) that will give you change tracking.

The example they have in that MSDN article is a pretty good one of how you could do it.

Alastair Pitts
  • 19,423
  • 9
  • 68
  • 97