get values from a dataset

  • Thread starter Thread starter microsoft.news.com
  • Start date Start date
M

microsoft.news.com

how can I get the values from my dataset to populate a form?
I have the dataset in XML and I want to read it and get the data values out
of it to populate my form.
I want to show them all and not in text boxes just write them out to the
screen.
 
I just can;t read the data set and get the values that way, I have to use a
control?
 
Hi,

Well you could draw then on the form if you want, is just that it does not
make much sense, it's better if you use a ListView for example to display
them. The control will handle the Scroll and all other details about the
displaying of the info.


cheers,
 
then with a control how can i accomplish this:

this is my data set:
<LocationData>
<Location>
<State>Delaware</State>
<City>Dover</City>
</Location>
<Location>
<State>New York</State>
<City>Fishkill</City>
</Location>
<Location>
<State>Delaware</State>
<City>Wilmington</City>
</Location>
<Location>
<State>New York</State>
<City>Syracuse</City>
</Location>
</LocationData>

and show it like this?

Delaware Dover
Wilmington
New York Fishkill
Syracuse
 
Back
Top