By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,197 Members | 1,210 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,197 IT Pros & Developers. It's quick & easy.

ASPX and XML integration with Datagrid

P: n/a
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

Nov 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Cor
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
Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.