help with XML in Datagrid

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default 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

    Frank Guest

  2. Similar Questions and Discussions

    1. How to add a Dropdown list to a datagrid at runtime (dynamic) without using template columns in ASP.NET and still have the ability to us the datagrid Update event.
      How to add a Dropdown list to a datagrid at runtime (dynamic) without using template columns in ASP.NET and still have the ability to us the...
    2. UserControl inside of datagrid - loses its viewstate when datagrid is re-bound on postback
      I have a simple usercontrol, a datepicker which contains 3 dropdownlist , it resides inside a datagrid column and i set the selecteddate property of...
    3. custom usercontrol inside of datagrid - loses its state/viewstate on re-bind/postback of the datagrid
      I have a simple usercontrol, a datepicker which contains 3 dropdownlist , it resides inside a datagrid column and i set the selecteddate property of...
    4. problema ultima pagina datagrid asp.net/problem last page datagrid
      ciao, ho un problema. ho un datagrid in una pagina asp.net con le impostazioni di PAGING abilitate. Uso l'impostazione NUMERIC PAGE. Il problema è...
    5. To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible?
      Hello, I am searching the whole Internet for a good example how to edit/update a DataGrid in a DataGrid (nested DataGrid). I know how to...
  3. #2

    Default 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.
    [email]m_tkachev@hotmail.com[/email]

    "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
    >

    Michael Tkachev Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139