Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Problems with ds.HasChanges and BindingManagerBase

Problems with ds.HasChanges and BindingManagerBase

Scheduled Pinned Locked Moved Visual Basic
helpdata-structuresquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Len Miller
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups