Undo on winform bound

Posts   
 
    
ianvink
User
Posts: 394
Joined: 15-Dec-2006
# Posted on: 09-Oct-2008 14:29:59   

With an adapter-based entity that is bound to WinForm controls, what is the best way to implement "Undo" so that the bound controls display the old values when a user clicks "Undo". The entity has not been saved, I want in-memory changes discarded.

I've tried DiscardSavedFields() but the bound controls are not updated.

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 09-Oct-2008 18:25:42   

Did you check Field data versioning?

Otherwise you may need to refetch and rebind tp undo changes.