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 new row dynamic into dataset

How to add new row dynamic into dataset

Scheduled Pinned Locked Moved ASP.NET
tutorial
3 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.
  • I Offline
    I Offline
    indiaone
    wrote on last edited by
    #1

    Hi, How to add new row dynamic into dataset. thanks

    V 1 Reply Last reply
    0
    • I indiaone

      Hi, How to add new row dynamic into dataset. thanks

      V Offline
      V Offline
      VenkataRamana Gali
      wrote on last edited by
      #2

      ds.Tables[0].Rows.Add();

      Ramana

      I 1 Reply Last reply
      0
      • V VenkataRamana Gali

        ds.Tables[0].Rows.Add();

        Ramana

        I Offline
        I Offline
        indiaone
        wrote on last edited by
        #3

        Hi, thanks for reply. I am doing like this Suppose i am inserting two records.then first it's insert blank row then insert the next record. i am getting why? My Code:- DataRow dr = dsCostAdminDetails.Tables[0].NewRow(); dr.Table.Columns["date"].DefaultValue = Convert.ToString( dtDate.AddDays(-lngTotalDays).ToShortDateString()); dsCostAdminDetails.Tables[0].Rows.InsertAt(dr, bteCounter);

        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