Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. xml to datagrid

xml to datagrid

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netxmltutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kar Han
    wrote on last edited by
    #1

    Anyone knows how to convert the following xml contents into a datagrid using asp.net? In the datagrid, there shall be 4 columns: listenPort,schemeAndHostPort,maxConnections,readTimeoutSeconds. - This is a sample mnitor config file - 3600 1 - - This redirects to a local machine 9090 http://localhost:80 1000 30 - This redirects to another machine 8080 http://172.17.168.112:80 1000 30 -- modified at 2:49 Wednesday 21st September, 2005

    M 1 Reply Last reply
    0
    • K Kar Han

      Anyone knows how to convert the following xml contents into a datagrid using asp.net? In the datagrid, there shall be 4 columns: listenPort,schemeAndHostPort,maxConnections,readTimeoutSeconds. - This is a sample mnitor config file - 3600 1 - - This redirects to a local machine 9090 http://localhost:80 1000 30 - This redirects to another machine 8080 http://172.17.168.112:80 1000 30 -- modified at 2:49 Wednesday 21st September, 2005

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, + To display the xml data in a datagrid control, you first need to create a datasource that represents xml data, then bind it to the datagrid. The datasource can be a dataset or a custom array object, you can take a look at the link below to see how to infer a dataset from XML: http://msdn.microsoft.com/library/en-us/cpguide/html/cpconinferringcolumns.asp[^] If you want to create a custom array object, you can simply parse the xml document and initialize the custom object. + Another way to display xml data is to use the XML server control instead of the datagrid control, but you have to specify the xsl stylesheet for transforming. Just some ideas.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups