king_jeremy
Member
- Joined
- Oct 20, 2009
- Messages
- 13
- Programming Experience
- Beginner
Hi,
I have a detailsView on tabPage1. When a user leaves tabPage1 without saving his changes the TabControl.Selecting event checks for any changes being made if it detects any a yesNo dialog opens and asks user if he wants to submit the changes or not before navigating the other tabPage. My problem is I cannot detect the changes being made without calling the bindingSource.EndEdit method but once I call it BindingSource.CancelEdit does not cancels the changes anymore. I guess this is the natural behavior of the bindingSource but then how am I supposed to check for any changes without calling an endEdit method and if decided use the cancelEdit method?
I have a detailsView on tabPage1. When a user leaves tabPage1 without saving his changes the TabControl.Selecting event checks for any changes being made if it detects any a yesNo dialog opens and asks user if he wants to submit the changes or not before navigating the other tabPage. My problem is I cannot detect the changes being made without calling the bindingSource.EndEdit method but once I call it BindingSource.CancelEdit does not cancels the changes anymore. I guess this is the natural behavior of the bindingSource but then how am I supposed to check for any changes without calling an endEdit method and if decided use the cancelEdit method?