Solved

How do you bind an XML file to a DataGrid?

Posted on 2009-05-05
2
199 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now