Question Multitable XML file

LenaCookie

New member
Joined
Apr 1, 2009
Messages
2
Programming Experience
Beginner
Hello everyone
I have a multitable (12 tables) XML file that i want to show in a table.
I tried using datagridview control but as I understood it can only show one table at a time (but I hope I'm wrong).

Dim tempDS As New DataSet
tempDS.ReadXml("myxmlfile.xml")
DataGridView1.DataSource = tempDS
DataGridView1.DataSource = tempDS.Tables(0)

This shows only the first table.

Is there any way to see the contets of the whole XML file in a table?
 
Last edited:
Did you try
Dim tempDS As New DataSet
tempDS.ReadXml("myxmlfile.xml")
DataGridView1.DataSource = tempDS
A DataGridView should be able to display multiple DataSet tables; I believe it puts each table in a tab.
 
Yes, I have tried this. I'm afraid it doesn't work. No new tabs unless I add them manually and assign separate datagridview to each and assign a table to each datagridview.
But it's not what i need.
I understand that the structure of an XML file I have is not the best but I hope there are solutions to show multiple tables from XML in one Datagridview
 
Back
Top