1.

How Can We Add/remove Row's In "datatable" Object Of "dataset" ?

Answer»

 “Datatable” PROVIDES “NewRow” method to add new row to “DataTable”. “DataTable” has “DataRowCollection” object which has all ROWS in a “DataTable” object.

FOLLOWING are the METHODS provided by “DataRowCollection” object :-

Add: Adds a new row in DataTable Remove It REMOVES a “DataRow” object from “DataTable” RemoveAt: It removes a “DataRow” object from “DataTable” depending on index position of the “DataTable”.

 “Datatable” provides “NewRow” method to add new row to “DataTable”. “DataTable” has “DataRowCollection” object which has all rows in a “DataTable” object.

Following are the methods provided by “DataRowCollection” object :-

Add: Adds a new row in DataTable Remove It removes a “DataRow” object from “DataTable” RemoveAt: It removes a “DataRow” object from “DataTable” depending on index position of the “DataTable”.



Discussion

No Comment Found