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. C#
  4. Updating Dataset

Updating Dataset

Scheduled Pinned Locked Moved C#
tutorialquestionannouncement
5 Posts 3 Posters 1 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.
  • A Offline
    A Offline
    ArielR
    wrote on last edited by
    #1

    If I have 2 datasets in which an updating to a table at dataset1 perform changes to the other table at dataset2... How to update this changes at Dataset2?. Must use tableadapter.fill( dataset2.mytable); does exist other way than refill?. thanks...

    D C 2 Replies Last reply
    0
    • A ArielR

      If I have 2 datasets in which an updating to a table at dataset1 perform changes to the other table at dataset2... How to update this changes at Dataset2?. Must use tableadapter.fill( dataset2.mytable); does exist other way than refill?. thanks...

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      I can't really understand your explanation, but I think you said you wanted to make changes to, or update the contents of, DataSet2 based on a change in DataSet1?? There is no automatic facility to do this. You have to write the code to get the data for DataSet2 or make the appropriate changes to it. Like I said, your explanation is not very clear or understandable.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      A 1 Reply Last reply
      0
      • A ArielR

        If I have 2 datasets in which an updating to a table at dataset1 perform changes to the other table at dataset2... How to update this changes at Dataset2?. Must use tableadapter.fill( dataset2.mytable); does exist other way than refill?. thanks...

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        No, ADO.NET is disconnected, you need to refill the grid. Unless you can manually copy the specific change from dataset1, but that's more work, it just saves you DB resources.

        Christian Graus Driven to the arms of OSX by Vista.

        A 1 Reply Last reply
        0
        • D Dave Kreskowiak

          I can't really understand your explanation, but I think you said you wanted to make changes to, or update the contents of, DataSet2 based on a change in DataSet1?? There is no automatic facility to do this. You have to write the code to get the data for DataSet2 or make the appropriate changes to it. Like I said, your explanation is not very clear or understandable.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          A Offline
          A Offline
          ArielR
          wrote on last edited by
          #4

          Yes Dave. This is the question. and sorry if it was ununderstandable. Thank you very much....

          1 Reply Last reply
          0
          • C Christian Graus

            No, ADO.NET is disconnected, you need to refill the grid. Unless you can manually copy the specific change from dataset1, but that's more work, it just saves you DB resources.

            Christian Graus Driven to the arms of OSX by Vista.

            A Offline
            A Offline
            ArielR
            wrote on last edited by
            #5

            Ok, thanks. I looking the way to have a low cost at the network traffic, and refill method isn't help me. I need the users have the real product amount if others make an invoice....

            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