Angular, PWA, C#, ASP.NET, Node.js, Docker, React, IONIC, IoT & more …

Add / Insert a row in xsd dataset or Typed dataset


// Create a new row.
NorthwindDataSet.RegionRow newRegionRow;
newRegionRow = northwindDataSet.Region.NewRegionRow();
newRegionRow.RegionID = 5;
newRegionRow.RegionDescription = "NorthWestern";

// Add the row to the Region table
this.northwindDataSet.Region.Rows.Add(newRegionRow);

// Save the new row to the database
this.regionTableAdapter.Update(this.northwindDataSet.Region)

======================================================================================================================================
other way : (better way :) )

tableAdapter.Insert(.........);

2 responses to “Add / Insert a row in xsd dataset or Typed dataset”

  1. movie trailersd Avatar
    movie trailersd

    I have been exploring for a little for any high quality articles or weblog posts in this kind
    of house . Exploring in Yahoo I at last stumbled upon this
    site. Studying this information So i’m happy to convey that I’ve a
    very excellent uncanny feeling I discovered exactly what I needed.

    I such a lot without a doubt will make certain to do not disregard this website and provides it a look on
    a constant basis.

    Like

    1. Bhavin Patel Avatar
      Bhavin Patel

      Thank you so much for this appreciation .. 🙂

      Happy Coding…

      Like

Leave a comment