ASPX and XML integration with Datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,
I am planning to implement a Datagrid display for my XML data. XML data has <problem><id>1</descrption>something</description><id>2</descrption>somewhere</description></problem>
These problem have associated comments for it.
<comments><id>1</id><Date>12/1/2004</Date><comment>adasdasdas</comment><id>1</id><Date>12/1/2004</Date><comment>qweiqweqw</comment><id>1</id><Date>12/1/2004</Date><comment>juewe</comment><id>2</id><Date>13/1/2004</Date><comment>adasdasdas</comment><id>2</id><Date>13/1/2004</Date><comment>qweiqweqw</comment><id>2</id><Date>13/1/2004</Date><comment>juewe</comment></comments>
I am displaying all the data from problem into a grid row and the comments have to be in the same row but it has to set the datasource to another XML.
Or can I have the Problem as well as comments in the same XML file and use it in my datagrid?
Any help would be greatly appreciated.
I am a novice to .net and please dont mind about my technical knowledge if these questions are absurd.
Thanks
John
 
Hi John,

Do not mix up what I am telling now. XML is used to store datasets.

The underlaying data from a datagrid is stored in a datatable.

And a lot of datatables can be stored in a dataset.

Therefore when you have a XML file that is a dataset (not every XML file is
a dataset, I hope you see that difference), you can connect XML to the
Datagrid.

But keep also in mind that the Datagrid is a serverside control and
therefore the connection is done at the serverside before sending and the
XML file itself is not sended to the client when used in this way.

(When you use a webservice and a so called windowsforms program it can also
be done in another way, this more to be complete, than trying to give you
information)

I hope this gives some light in the dark?

Cor
I am planning to implement a Datagrid display for my XML data. XML data
has
 
Back
Top