April 24, 2013

Copy and Clone method


DataTable.Copy()  Vs DataTable.Clone()



Both the Copy and the Clone methods create a new DataTable with the same structure as the original DataTable. 

The new DataTable created by the Copy method has the same set of DataRows as the original table

whereas the new DataTable created by the Clone method does not contain any DataRows."


DataTable.Copy()
DataTable.Clone()
Create a new methods with same structure
Create a new methods with same structure
Data Row / Data in table is also copied
Data in table is not copied

1 comment: