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. updating database

updating database

Scheduled Pinned Locked Moved Database
questiondatabaseregexannouncement
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.
  • R Offline
    R Offline
    RomanD
    wrote on last edited by
    #1

    How do I update the database if I don't know which row to update. The selected datagrid row doesn't match that of dataset row because of how I display things. So how do I match up the dataGrid row to the dataTable row?

    A 1 Reply Last reply
    0
    • R RomanD

      How do I update the database if I don't know which row to update. The selected datagrid row doesn't match that of dataset row because of how I display things. So how do I match up the dataGrid row to the dataTable row?

      A Offline
      A Offline
      Aryadip
      wrote on last edited by
      #2

      hi, The one way which appears in my mind is : While displaying the dataset content on the datagrid maintain the datagrid row :: dataset relation (may be in the form of HashTable) and later on while updating refer to this relation HashTable to locate the dataset rows or columns... Hope this helps you... sorry if I haven't got your question right... regards, Aryadip. Cheers !! and have a Funky day !!

      A 1 Reply Last reply
      0
      • A Aryadip

        hi, The one way which appears in my mind is : While displaying the dataset content on the datagrid maintain the datagrid row :: dataset relation (may be in the form of HashTable) and later on while updating refer to this relation HashTable to locate the dataset rows or columns... Hope this helps you... sorry if I haven't got your question right... regards, Aryadip. Cheers !! and have a Funky day !!

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

        hi, how would I go about setting up a hashtable. I haven't worked with the hash Table yet. What I did try, what to see whether the table contained the a row with a field that matches the first cell in the datagrid. But it made my dataAdapter or something to stop working before the problem even hit that function. yet gave no errors at start-time.

        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