Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1830
IEditableObject.CancelEdit for AddRecord?
posted

IEditableObject.CancelEdit is not called for AddRecords, and I think I understand why, because of the unique internal handling for that grid record.  However, I have some logic in CancelEdit that I need also for the AddRecord (namely to reset a dirty data flag after cancellation), and I was wondering where to put that code for the AddRecord.  XDG.RecordUpdateCanceling/ed is okay, and though not as smitten with MVVM as others, I like to keep code behind to a minimum.  Any ideas?  Thanks.

Parents Reply Children