what is dataset name

  • Thread starter Thread starter ALI-R
  • Start date Start date
A

ALI-R

in the following statement why we have to give Dataset a name? what is it
used for?

Dataset myDataset =new Dataset("name_of_Dataset");

what is "name_of_Dataset" and what is its usage?

thanks
 
I think it is used as the name of the roote element if you get the dataset's
contents as xml. Might be other uses as well.
 
You don't have to give a name; there is a second overload with a default
constructor.

Giving a name can help when you do work with multiple datasets; also you are
a lot more consistent.

Costas
 
in the following statement why we have to give Dataset a name? what is it
used for?

Dataset myDataset =new Dataset("name_of_Dataset");

what is "name_of_Dataset" and what is its usage?

thanks


I tend to just do this

DataSet myDataset = new DataSet();
 
Back
Top