How do you bind an XML file to a DataGrid?

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
Ray TurnerSenior ConsultantAsked:
Who is Participating?
 
pras_guptaConnect With a Mentor Commented:
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
 
Ray TurnerSenior ConsultantAuthor Commented:
Thanks!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.