Fremesul,
I checked it because I was surprised that I wrote "better". There is in my
opinion no "best" solution, every solution has a better alternative and I
don't know if that is in this case. I wrote "easier".
However, the dataset is made to cooperate with SQL based databaseservers and
has therefore every functionality to handle it.
Basically it exist from collections of datatables, which have collections
of datarows, which have collections of dataitems. The dataitems are
described in datacolumns. While as well it is possible to make relations in
this for the tables.
It has a lot of standard methods in dotnet to send and use in different
ways.
To give you four samples in VBNet format,
reading of a dataset from a disk is.
mydataset.readXML("path").
writing
mydataset.writeXML("path")
showing the complete dataset in a datagrid
mydatagrid1.datasource = mydataset
getting the first item from the first row from the first table
mydataset.tables(0).rows(0)(0)
or when it would have had names
mydataset.tables("myfirsttable").rows(0).items("My FirstItem")
However, this is just the begin and all based on data.
I hope this gives some ideas'
Cor
"fremenusul" <fr********@discussions.microsoft.com> schreef in bericht
news:70**********************************@microsof t.com...
Why is datafile better? I am learning and want to understand the "why's"
as
much as the "how's".
Thanks,
Michael
"Cor Ligthert" wrote:
Fremenusul.
When you start with VBNet or beter dotNet and will use XML, you have
yourself first is this an data file or a document.
When it is a data file you would first have a look at the dataset,
because
that has its own methods to handle elements, which are a lot easier than
the
loaddoc and the xmlreader.
When you have more questions, please reply
Cor