Add or remove row in object of dataset in ado .net

It is containing all topics related to Visual Basic, .NET Framework, Web Resource, GDI etc.
Ladva Nidhi
Posts: 295
Joined: Sat Sep 20, 2014 5:26 pm
Contact:

Add or remove row in object of dataset in ado .net

Postby Ladva Nidhi » Sun Oct 26, 2014 10:31 am

How can we add/remove row is in “Data Table” object of “Dataset”?


Guest

Re: Add or remove row in object of dataset in ado .net

Postby Guest » Tue Jul 28, 2015 6:51 am

“Data table” provides “NewRow” method to add new row to “Data Table”. “Data Table” has “DataRowCollection” object that has all rows in a “Data Table” object. Following are the methods provided by “DataRowCollection” object: -

Add
Adds a new row in Data Table

Remove
It removes a “Data Row” object from “Data Table”

Remove At
It removes a “Data Row” object from “Data Table” depending on index position of the “Data Table”.


Return to “Visual Basic .NET and ASP.NET”

Who is online

Users browsing this forum: No registered users and 1 guest