Welcome to U E T - C S . org Sign in | Join | Help

Osama Abbas

the Answers to Life, the Universe, and Everything
some DataSet discoveries

I needed to clone an existing Dataset into a new one today and was faced with two choices which the DataSet provided me :

1) DataSet.Clone()

2) DataSet.Copy()

As usual Google came to the rescue and and I found out the following :

The Clone() method copies the structure of the DataSet, including all DataTable schemas, Relations and Constraints. But it does not copy any data.

The Copy() method copies both structure and Data.

More info here

Another thing was the difference between DataSet.Clear() and DataSet.Reset()

Found out that Clear() just removes data, whereas Reset removes Data, Tables and Relations.

Posted: Friday, January 19, 2007 5:14 AM by osama.abbas
Filed under:

Comments

GulzaibKhan said:

Nice discoveries buddy...these are very common points of confusion ...

# January 22, 2007 11:38 PM
Anonymous comments are disabled