Solved

C# Another instance of the same DataSet???

Posted on 2004-08-28
3
200 Views
Last Modified: 2010-04-15

This may sound elementary but I cannot seem to create another instance (in method 2)  of the original DataSet created ( in method 1). I feel somehow the trash can has it...........

Q. How do you create another instance of the same DataSet???
0
Comment
Question by:kvnsdr
  • 2
3 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11923440
yes you would use the DataSet.Clone method, it will do a deep copy of your dataset. http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdatadatasetclassclonetopic.asp
0
 
LVL 1

Author Comment

by:kvnsdr
ID: 11952714
I've read the 'clone' statement does not include the data, just the scheme........
0
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 50 total points
ID: 11953054
yeah then you just copy the rows table by table ...
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question