Solved

How do you bind an XML file to a DataGrid?

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

813 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

13 Experts available now in Live!

Get 1:1 Help Now