Click here to Skip to main content
15,909,896 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
difference between opy and clone method
Posted

are you asking about copy and clone method of data table


Copy
<br />
datatable newTableCopy;<br />
newTableCopy= existingTable.Copy();<br />

datatable.copy :
Creates a new datatable along with same structure - (schemas and constraints applied if any) including data in the existing table.

Clone
<br />
datatable newTableClone;<br />
newTableClone= existingTable.Clone();.<br />

datatable.Clone():

Creates a new datatable along with same structure with all schemas and constraints excluding data
 
Share this answer
 
Plenty of links available to this question if you do a search.

Here is one.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900