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
  1. Home
  2. Database & SysAdmin
  3. Database
  4. problem with GetChanges [modified]

problem with GetChanges [modified]

Scheduled Pinned Locked Moved Database
helpquestionannouncement
2 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.
  • G Offline
    G Offline
    goldoche
    wrote on last edited by
    #1

    I have a problem with the GetChanges method. Here's what happens: I modify a row in my typed dataset, I do NOT call AcceptChanges nor Update. Afterwards, I call GetChanges() on my dataset and it returns null! I've made a Quick Watch on my dataset and the new value is effectively there, but the state of the modified row is Unchanged. What am I missing? Thanks! -- modified at 15:54 Wednesday 4th July, 2007 Update: the value I modify is binded to a Windows Form control (NumericUpDown). I've noticed that if I modify the value programmatically, the RowState is Modified, which is what I want, obviously. So does anybody know why modifiying a value with a GUI Control does not mark the row as Modified whereas modifying it programmatically does? Thank you!

    G 1 Reply Last reply
    0
    • G goldoche

      I have a problem with the GetChanges method. Here's what happens: I modify a row in my typed dataset, I do NOT call AcceptChanges nor Update. Afterwards, I call GetChanges() on my dataset and it returns null! I've made a Quick Watch on my dataset and the new value is effectively there, but the state of the modified row is Unchanged. What am I missing? Thanks! -- modified at 15:54 Wednesday 4th July, 2007 Update: the value I modify is binded to a Windows Form control (NumericUpDown). I've noticed that if I modify the value programmatically, the RowState is Modified, which is what I want, obviously. So does anybody know why modifiying a value with a GUI Control does not mark the row as Modified whereas modifying it programmatically does? Thank you!

      G Offline
      G Offline
      goldoche
      wrote on last edited by
      #2

      This seems to be a bug. Here's how to solve it: BindingContext[dataset, datatable].EndCurrentEdit();

      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