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. can you help me,,,about data grid ?

can you help me,,,about data grid ?

Scheduled Pinned Locked Moved Visual Basic
cssdatabasehelpquestion
5 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.
  • F Offline
    F Offline
    flashmemory
    wrote on last edited by
    #1

    my data is loaded to data grid using dataset,, now i want to put a button when i press on it it will save the changes permanent to my database... thanks...

    C 1 Reply Last reply
    0
    • F flashmemory

      my data is loaded to data grid using dataset,, now i want to put a button when i press on it it will save the changes permanent to my database... thanks...

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

      You can iterate through the rows of a datagrid and check if a row is new, if it was deleted, or if it's been changed. Once you do this, you'll know what data to pass back to the database. Christian Graus - Microsoft MVP - C++

      L 1 Reply Last reply
      0
      • C Christian Graus

        You can iterate through the rows of a datagrid and check if a row is new, if it was deleted, or if it's been changed. Once you do this, you'll know what data to pass back to the database. Christian Graus - Microsoft MVP - C++

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Christian Graus wrote:

        You can iterate through the rows of a datagrid and check if a row is new, if it was deleted, or if it's been changed. Once you do this, you'll know what data to pass back to the database.

        How could we do that?

        C 1 Reply Last reply
        0
        • L Lost User

          Christian Graus wrote:

          You can iterate through the rows of a datagrid and check if a row is new, if it was deleted, or if it's been changed. Once you do this, you'll know what data to pass back to the database.

          How could we do that?

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

          http://www.vb-helper.com/howto_net_datagrid.html[^] This example shows how to use a data adapter to do the same thing. Christian Graus - Microsoft MVP - C++

          L 1 Reply Last reply
          0
          • C Christian Graus

            http://www.vb-helper.com/howto_net_datagrid.html[^] This example shows how to use a data adapter to do the same thing. Christian Graus - Microsoft MVP - C++

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Thank you very much for your answer.

            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