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

 Posted by ArticlesMaint on 9/17/2009 | Category: ADO.NET Interview questions | Views: 5332


“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”.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response