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. General Programming
  3. XML / XSL
  4. DataGrid: view XML data

DataGrid: view XML data

Scheduled Pinned Locked Moved XML / XSL
csscomxmlhelptutorial
1 Posts 1 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.
  • A Offline
    A Offline
    aluisdo
    wrote on last edited by
    #1

    Dear all, I got an XML like this: Aluis tungdt@ssi.com.vn 123456789 0983934645 IT11 ... here is code that I load XML to DataGrid: private void loadData(string xmlsource) { try { // Initialize Component and other code here // Create an XmlDataDocument object and read an XML XmlDataDocument xmlDatadoc = new XmlDataDocument(); xmlDatadoc.DataSet.ReadXml(xmlsource); // Create a DataSet object and fill with the dataset // of XmlDataDocument this.colleagueList = new DataSet("Colleague List"); this.colleagueList = xmlDatadoc.DataSet; // Attach dataset view to the Data Grid control this.lstColleague.DataSource = this.colleagueList.DefaultViewManager; this.lstColleague.NavigateTo(0, "colleague"); } catch(Exception e) { throw e; } } but all the attributes in node, and node were not showed. Please help me how to display all information in one view... Regards,

    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