Problems with ds.HasChanges and BindingManagerBase
-
Hi. I have a screen that allows navigation via (first, prev, next, last) using a BindingManagerBase. It is actually a control that I made that is being passed a bmb upon instantiation. Now, if someone attempts to navigate off the record, I check to see if there are any changes first. Something like this: ... BindingContext(ds).EndCurrentEdit() return ds.HasChanges ... I ask the user if they want to save, disregard changes or cancel. If the user picks disregard changes, I do something like this. ... ds.rejectChanges ... Immediately after that line of code, ds.hasChanges = False. The problem is, after control goes back to the app, and the user tries to navigate again, ds.hasChanges=TRUE??? :confused: As far as I can tell, I am not changing any data in any of my events or other code. Is there something that I am missing? The user will keep getting told they have changes even though they asked to disregard them. :mad: Any help would be appreciated! Thanks! Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln