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. General Programming
  3. Visual Basic
  4. DataSet Changes?

DataSet Changes?

Scheduled Pinned Locked Moved Visual Basic
databasequestionannouncement
3 Posts 3 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
    GrindAZ
    wrote on last edited by
    #1

    I have a DataSet that gets it's data from a stored procedure. I then use that dataset to populate a datagrid. When the user makes changes to the datagrid or adds new rows, how can I update the database table with the affected rows? Is there a way to tell which rows in a dataset have been changed or added?

    N 1 Reply Last reply
    0
    • G GrindAZ

      I have a DataSet that gets it's data from a stored procedure. I then use that dataset to populate a datagrid. When the user makes changes to the datagrid or adds new rows, how can I update the database table with the affected rows? Is there a way to tell which rows in a dataset have been changed or added?

      N Offline
      N Offline
      Nick Seng
      wrote on last edited by
      #2

      just use the update method of the adapter you used:

      Adapter.Update(ds)

      Just make sure you have created the commands neccesary for the operations (insert, delete, update) Nick Seng (the programmer formerly known as Notorious SMC)


      God, I pity me! - Phoncible P. Bone

      A 1 Reply Last reply
      0
      • N Nick Seng

        just use the update method of the adapter you used:

        Adapter.Update(ds)

        Just make sure you have created the commands neccesary for the operations (insert, delete, update) Nick Seng (the programmer formerly known as Notorious SMC)


        God, I pity me! - Phoncible P. Bone

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        u have to take care of concurrency also if it is a muti-user system ....

        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