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. RelationShip Betweem dataset

RelationShip Betweem dataset

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

    Hi Guys Good Morning, I have 3 Dataset like this, First Dataset Records, Code Value 1010 68.876 7887 189.89 456 1880.76 1010 223.978 Second Dataset Record IV 7.88 Third Dataset Records, Code Name IndCode 1010 Name1 1 7887 Name5 2 456 Name8 3 Now thses 3 dataset merge and i need the final dataset like this..., Name finalValue Percent(finalvalue/IV) Name1 292.854 37.16 (Code-1010,Value-68.876+223.978) Name5 189.89 24.10 (code-7887,value-189.89) Name8 1880.76 238.68 (code-456,Value-1880.76) How to get the final dataset like this Thanks & Regards, Member 3879881, please don't forget to vote on the post

    A 1 Reply Last reply
    0
    • M Member 3879881

      Hi Guys Good Morning, I have 3 Dataset like this, First Dataset Records, Code Value 1010 68.876 7887 189.89 456 1880.76 1010 223.978 Second Dataset Record IV 7.88 Third Dataset Records, Code Name IndCode 1010 Name1 1 7887 Name5 2 456 Name8 3 Now thses 3 dataset merge and i need the final dataset like this..., Name finalValue Percent(finalvalue/IV) Name1 292.854 37.16 (Code-1010,Value-68.876+223.978) Name5 189.89 24.10 (code-7887,value-189.89) Name8 1880.76 238.68 (code-456,Value-1880.76) How to get the final dataset like this Thanks & Regards, Member 3879881, please don't forget to vote on the post

      A Offline
      A Offline
      Ankur m
      wrote on last edited by
      #2

      I don't understand what you are trying to do but if you just require to achieve this, then follow these steps: Add a Table to the new DataSet. Add Columns to the Table. Assign these columns to the corresponding columns. Something like

      NewDataSetObject.Tables[0].Columns[0] = DataSet1.Tables[0].Columns[0];

      I would rather recommend you to explain your scenario and answer these questions: Where are these data coming from? Why have you taken one DataSet for 1 Table? Why are you creating another DataSet when you can assign a DataSet, containing these Tables, as a DataSource ?

      ..Go Green..

      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