Answer:
With the help of Add,Remove and RemoveAt method,we can Add or Remove rows from the DataTable.
Explaination:-
Add() - Adds a new row to DataRowCollection.
Remove()- Removes a DataRow object from DataRowCollection.
RemoveAt() - Removes a row whose location is specified by an index number.
Asked In: Many Interviews |
Alert Moderator