Solved

How do you bind an XML file to a DataGrid?

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem with SqlConnection 5 109
Using MS Code on my Mac 6 44
Hovering effect 9 29
Modifying Conditional Format from VBA code 3 29
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…
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
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…
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…

708 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