C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Difference between DataTable's Clone and Copy Method


Posted Date: 15 Oct 2008    Resource Type: Articles    Category: .NET Framework

Posted By: vinayaka krishna Shenoy       Member Level: Silver
Rating:     Points: 2



Clone method will copy only the structure of the Source datatable to the destination datatable, but Copy Method will copy both the data and structure of the Original Data table to the destiny data table.

Regards,
-Vinayak




Responses

Author: T.Thirumala Reddy    22 Oct 2008Member Level: Bronze   Points : 1
DataTable dt=new DataTable();
dt=ds.Tables[0].copy(); will copy all the data and structure to dt table

dt=ds.Table[0].clone(); will create only the structure of table not data.


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
DataTable  .  Clone and copy  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Adding data in the first line of datagridview
Previous Resource: Difference between Delete and Remove in ADO.Net (DataTable)
Return to Discussion Resource Index
Post New Resource
Category: .NET Framework


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

masks masks masks

Contact Us    Privacy Policy    Terms Of Use