Answer: DataTable Clone() method is used for retrieving all the columns a DataTable have.
It only retrieve structure not rows.
For Example:-
DataTable new_dt = new DataTable();
new_dt = dt_employee.Clone();
So,whatever dt_employee Datatable contains columns will be assigned to new_dt DataTable.
Here dt_employee is another DataTable.
Asked In: Many Interviews |
Alert Moderator