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. Web Development
  3. ASP.NET
  4. How to add one table data into another table in a dataset.

How to add one table data into another table in a dataset.

Scheduled Pinned Locked Moved ASP.NET
tutorial
2 Posts 2 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.
  • S Offline
    S Offline
    Sophia Rekhi
    wrote on last edited by
    #1

    Hi all, i want to know, How to store data from one table to another table in a dataset. * ex: dataset contains 2 tables. one table has data, other is empty. thanks

    S 1 Reply Last reply
    0
    • S Sophia Rekhi

      Hi all, i want to know, How to store data from one table to another table in a dataset. * ex: dataset contains 2 tables. one table has data, other is empty. thanks

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      Clones the structure of the DataTable, including all DataTable schemas and constraints. DataTable newTable =ds.Tables[0].Clone(); Iterate through the dataset assign data to new table newTable.Rows.Add(ds.Tables[0].Rows[0]); add new table to Dataset ds.Tables.Add(newTable);

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      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