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. C#
  4. How to add table's content from one to another table

How to add table's content from one to another table

Scheduled Pinned Locked Moved C#
helpdesigntutorialquestionannouncement
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.
  • D Offline
    D Offline
    dwark106
    wrote on last edited by
    #1

    Hi All, I have a table which has multiple row. User wants to see some data based upon criteria(Primary Key) through user interface. After displaying the row on the datagrid(Infragistic), user wants to delete some rows or update. In my code, I am using two table. One is "Maintable" and other is "Displaytable". I donot have any problem to display the row using "Displaytable" in datagrid but when user update or delete rows and I donot know how to update the "maintable". Do I need to have only one table or two table? Please help me. Thanks in Advance

    C 1 Reply Last reply
    0
    • D dwark106

      Hi All, I have a table which has multiple row. User wants to see some data based upon criteria(Primary Key) through user interface. After displaying the row on the datagrid(Infragistic), user wants to delete some rows or update. In my code, I am using two table. One is "Maintable" and other is "Displaytable". I donot have any problem to display the row using "Displaytable" in datagrid but when user update or delete rows and I donot know how to update the "maintable". Do I need to have only one table or two table? Please help me. Thanks in Advance

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

      Why do you have two tables again ?

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      D 1 Reply Last reply
      0
      • C Christian Graus

        Why do you have two tables again ?

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        D Offline
        D Offline
        dwark106
        wrote on last edited by
        #3

        I am using two tables because one for displaying the contents of the selected row in Displaytable when user send data through text box and other one is used for maintable (getting the data for displaytable). I donot have any problem to use one table but I donot know how to use and display the contents of the selected 10 row. If user modify one row or delete how to update the maintable.

        D N 2 Replies Last reply
        0
        • D dwark106

          I am using two tables because one for displaying the contents of the selected row in Displaytable when user send data through text box and other one is used for maintable (getting the data for displaytable). I donot have any problem to use one table but I donot know how to use and display the contents of the selected 10 row. If user modify one row or delete how to update the maintable.

          D Offline
          D Offline
          dwark106
          wrote on last edited by
          #4

          Basically, I have xml format table that's why I am using two table( I guess so)

          1 Reply Last reply
          0
          • D dwark106

            I am using two tables because one for displaying the contents of the selected row in Displaytable when user send data through text box and other one is used for maintable (getting the data for displaytable). I donot have any problem to use one table but I donot know how to use and display the contents of the selected 10 row. If user modify one row or delete how to update the maintable.

            N Offline
            N Offline
            N a v a n e e t h
            wrote on last edited by
            #5

            You only need one table. When user updates the value, update it to database and refresh your table with latest values.

            Navaneeth How to use google | Ask smart questions

            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