How can we add/remove row's in "DataTable" object of "DataSet"?

Answer

NewRow’ method is provided by the ‘Datatable’ to add new row to it.
‘DataTable’ has “DataRowCollection” object which has all rows in a “DataTable” object.
Add method of the DataRowCollection is used to add a new row in DataTable.
We fill it with data fetched from the data store. Once the work is done with the dataset, connection is reestablished
Remove method of the DataRowCollection is used to remove a ‘DataRow’ object from ‘DataTable’.
RemoveAt method of the DataRowCollection is used to remove a ‘DataRow’ object from ‘DataTable’ per the index specified in the DataTable.

All ado.net Questions

Ask your interview questions on ado-net

Write Your comment or Questions if you want the answers on ado-net from ado-net Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---