Click here to Skip to main content
15,935,728 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends


how to read muliple xml file and bind to single gridview


Regards
Manohar
Posted

1 solution

1. You create the dataset as ds1
2. Read one by one xml file and then add to dataset ds1. Each xml file correspond datatable.
3. Bind dataset to gridview
 
Share this answer
 
Comments
Manohar_manu 23-Jun-13 3:19am    
hi it is taking only one row


Dim myXMLfile As String = "D:\Manohar\xmlfiles\RootProcess.xml"
Dim myXMLfile1 As String = "D:\Manohar\xmlfiles\Plantprocess1.xml"
Dim ds As New DataSet()
Dim ds1 As New DataSet()
Try
ds.ReadXml(myXMLfile)
dgvXmlPathSetting.DataSource = ds
dgvXmlPathSetting.DataBind()


ds1.ReadXml(myXMLfile1)
dgvXmlPathSetting.DataSource = ds1
' dgvXmlPathSetting.DataMember = "Cust"
dgvXmlPathSetting.DataBind()
Catch ex As Exception

End Try

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900