Cloning datatable a useful feature. If we require to reuse the structure of a data table or dataset(not the data), we can go for the cloning option.
If this feature is not there in the dotnet, we require to get the data structure from the data table or dataset manually. That's a tedous job.
Code for cloning is as follows.
private DataTable CloneDataTable (DataTable DataTable1, DataTable DataTable2)
{
DataTable2= DataTable1.Clone();
return DataTable1
}