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. How to Display Data in DataGrid

How to Display Data in DataGrid

Scheduled Pinned Locked Moved XML / XSL
xmltutorialquestion
3 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.
  • C Offline
    C Offline
    Chetan Ranpariya
    wrote on last edited by
    #1

    Hi Friends, I have to xml files with on common field them. How can I display data from both the file using dataview and dataset. Plz send me reply soon. Its very urgent. Thank u all in advance.

    S 1 Reply Last reply
    0
    • C Chetan Ranpariya

      Hi Friends, I have to xml files with on common field them. How can I display data from both the file using dataview and dataset. Plz send me reply soon. Its very urgent. Thank u all in advance.

      S Offline
      S Offline
      softty
      wrote on last edited by
      #2

      Not all xml file can be shown on the grid, It has to be in proper schema, or manually you have to file in a DataTable of a DataSet. Whenever a DataSet is writen into a xml file, it format the xml file in a recognized format, and preferable with its schema. The same xml file can be read into a DataSet. And at last , DataSource property of DataGrid can be set to that DataSet to show the xml file. Refer : DataSet.Load(), DataSet.WriteXml() for further information. love2code

      C 1 Reply Last reply
      0
      • S softty

        Not all xml file can be shown on the grid, It has to be in proper schema, or manually you have to file in a DataTable of a DataSet. Whenever a DataSet is writen into a xml file, it format the xml file in a recognized format, and preferable with its schema. The same xml file can be read into a DataSet. And at last , DataSource property of DataGrid can be set to that DataSet to show the xml file. Refer : DataSet.Load(), DataSet.WriteXml() for further information. love2code

        C Offline
        C Offline
        Chetan Ranpariya
        wrote on last edited by
        #3

        Hi, Thanx for ur Reply. U suggested a good way to user xml schema. I am using schemas to store data in xml file. I think there are some methods using which we can put a relation ship between two tables in xml file. But I dont know how use them properly. If u know this way then plz let me know. Thank u again.

        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