how to create datagrid based on XML file

Discussion in 'ASP .Net Datagrid Control' started by Ryan.Yeh, Jul 18, 2003.

  1. Ryan.Yeh

    Ryan.Yeh Guest

    Hi group,

    Is anyone have an idea on how to define/ create the datagrid based on the
    xml file. For example, a XML file stored the grid columns' name, data type,
    and the format string. How can i apply this XML and create the columns as
    defined?

    regards,
    Ryan.Yeh, Jul 18, 2003
    #1
    1. Advertising

  2. Ryan.Yeh

    Alvin Bruney Guest

    you would have to create a datagrid, then say getschema and point it at the
    xml file. that's it

    "Ryan.Yeh" <> wrote in message
    news:OV$...
    > Hi group,
    >
    > Is anyone have an idea on how to define/ create the datagrid based on

    the
    > xml file. For example, a XML file stored the grid columns' name, data

    type,
    > and the format string. How can i apply this XML and create the columns as
    > defined?
    >
    > regards,
    >
    >
    Alvin Bruney, Jul 19, 2003
    #2
    1. Advertising

  3. Ryan.Yeh

    Teemu Keiski Guest

    You could do that using DataSet for example. It has methods to read XML
    (data and/or schema).

    --
    Teemu Keiski
    MCP, Designer/Developer
    Mansoft tietotekniikka Oy
    http://www.mansoft.fi

    AspInsiders Member, www.aspinsiders.com
    ASP.NET Forums Moderator, www.asp.net
    AspAlliance Columnist, www.aspalliance.com

    "Ryan.Yeh" <> wrote in message
    news:OV$...
    > Hi group,
    >
    > Is anyone have an idea on how to define/ create the datagrid based on

    the
    > xml file. For example, a XML file stored the grid columns' name, data

    type,
    > and the format string. How can i apply this XML and create the columns as
    > defined?
    >
    > regards,
    >
    >
    Teemu Keiski, Jul 19, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. BLF
    Replies:
    4
    Views:
    1,267
    Mike Treseler
    Aug 7, 2004
  2. Christofer Dutz
    Replies:
    3
    Views:
    480
    Christofer Dutz
    Dec 9, 2003
  3. Andy
    Replies:
    0
    Views:
    525
  4. Matt
    Replies:
    3
    Views:
    330
    Bob Barrows [MVP]
    Apr 23, 2004
  5. Erik Wasser
    Replies:
    5
    Views:
    437
    Peter J. Holzer
    Mar 5, 2006
Loading...

Share This Page