Solved

How do you bind an XML file to a DataGrid?

Posted on 2009-05-05
2
207 Views
Last Modified: 2013-12-27
I am building a Mobile Application that has a System.Windows.Forms.DataGrid.

Is there a way to populate the grid from a XML file?

If so,  please provide an example.

Thanks
0
Comment
Question by:Ray Turner
2 Comments
 
LVL 1

Accepted Solution

by:
pras_gupta earned 500 total points
ID: 24308974
You can load the XML to a Dataset and than set DataSource property of DataGrid = dataset.
Dataset provide readXMl and LoadXML method to load a XML.
Hope this helps.
 
0
 

Author Closing Comment

by:Ray Turner
ID: 31578219
Thanks!!!
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let me explain this picture a little bit.  First, in case you haven't already guessed, you are looking at my 2 phones, an Android Samsung Galaxy S5 on the left and an iPhone 5 on the right.  They are on their respective cradles on my desk.  But, you…
Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question