Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Datagrid Control (http://www.velocityreviews.com/forums/f60-asp-net-datagrid-control.html)
-   -   help with XML in Datagrid (http://www.velocityreviews.com/forums/t762250-help-with-xml-in-datagrid.html)

Frank 08-29-2005 06:09 PM

help with XML in Datagrid
 
I have this XML document which I want to list in a datagrid. I know
..NET implicitly infers the
data relation but I don't know how to manipulate it.

Here is the document:

<root>
<Folders Language="Polish">
<Master Exists="True"></Master>
<Document Exists="True"></Document>
<Page Exists="True"></Page>
<Component Exists="True"></Component>
</Folders>
<Folders Language="US English">
<Master Exists="False"></Master>
<Document Exists="False"></Document>
<Page Exists="True"></Page>
<Component Exists="False"></Component>
</Folders>
<Folders Language="Japanese">
<Master Exists="False"></Master>
<Document Exists="True"></Document>
<Page Exists="False"></Page>
<Component Exists="True"></Component>
</Folders>
<Folders Language="Korean">
<Master Exists="True"></Master>
<Document Exists="False"></Document>
<Page Exists="True"></Page>
<Component Exists="False"></Component>
</Folders>
</root>



I'm trying to put the Languages along the top row (as a header) and
"Master, Document, Page, Component" along the first column. The Exists

Parameter should show up in the cell
So It would basically have something like this:


Language |Polish|US English|Japanese|Korean
Master | True | True | True | True
Document | False| False | True | False
Page | Flase| True | False | True
Component| True | Flase | True | False


Thanks!
Frank


Michael Tkachev 09-01-2005 12:39 PM

Re: help with XML in Datagrid
 
Hi,

If you use the XML document, I recommend you to apply the XSL. It's easier.
If you need, I can help you to write it.

--
Sincerely yours,
Michael B. Tkachev.
m_tkachev@hotmail.com

"Frank" <FrankIsHere@gmail.com> wrote in message
news:1125338940.331263.85570@g47g2000cwa.googlegro ups.com...
> I have this XML document which I want to list in a datagrid. I know
> .NET implicitly infers the
> data relation but I don't know how to manipulate it.
>
> Here is the document:
>
> <root>
> <Folders Language="Polish">
> <Master Exists="True"></Master>
> <Document Exists="True"></Document>
> <Page Exists="True"></Page>
> <Component Exists="True"></Component>
> </Folders>
> <Folders Language="US English">
> <Master Exists="False"></Master>
> <Document Exists="False"></Document>
> <Page Exists="True"></Page>
> <Component Exists="False"></Component>
> </Folders>
> <Folders Language="Japanese">
> <Master Exists="False"></Master>
> <Document Exists="True"></Document>
> <Page Exists="False"></Page>
> <Component Exists="True"></Component>
> </Folders>
> <Folders Language="Korean">
> <Master Exists="True"></Master>
> <Document Exists="False"></Document>
> <Page Exists="True"></Page>
> <Component Exists="False"></Component>
> </Folders>
> </root>
>
>
>
> I'm trying to put the Languages along the top row (as a header) and
> "Master, Document, Page, Component" along the first column. The Exists
>
> Parameter should show up in the cell
> So It would basically have something like this:
>
>
> Language |Polish|US English|Japanese|Korean
> Master | True | True | True | True
> Document | False| False | True | False
> Page | Flase| True | False | True
> Component| True | Flase | True | False
>
>
> Thanks!
> Frank
>





All times are GMT. The time now is 02:31 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.