How to reset Datatable/Dataset to its Original state meaning no tables,no colums and no rows?

 Posted by vishalneeraj-24503 on 12/18/2013 | Category: ADO.NET Interview questions | Views: 3889 | Points: 40

We can again initialize datatable,then it will reset.
For Example:-Suppose i have dt_employee DataTable,so to reset it

i will create new object as

dt_employee = new DataTable();

Otherway we can do is to use DataTable Reset() method ti achieve the same.

For Example:-

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response