| Author: Hari 01 Nov 2009 | Member Level: Gold | Rating:  Points: 2 |
Hi,
You can do this
DataSet ds = new DataSet(); ds.ReadXml(MapPath("MERGED.xml")); DataGrid1.DataSource = ds; DataGrid1.DataBind();
|
| Author: ganeshkumar 01 Nov 2009 | Member Level: Bronze | Rating:  Points: 2 |
fine but as my merged xml file looks like <book id="bk101"> <author>Gambardella, Matthew</author> <title>XML Developer's Guide</title> <genre>Computer</genre> <price>44.95</price> </book> - <Customer> <CustomerName>Bob Frapples</CustomerName> <PricePerUnit>5.95</PricePerUnit> <ClosingDate>2001-12-16</ClosingDate> </Customer>
now if i want both the data(customer,book ) to be populated in datagridview what should i do?
with the help of ur code i am populating only particular element
ie.only either customer or book element only populated in datagrid view
i need both to be populated .
what should i do?
|
| Author: Nikhil Gaur 01 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
use this sample project. May be this could help you.
Join this campus group http://www.dotnetspider.com/sites/637/-ecb-aspdotnet.aspx
Thanks & Regards NIks My Software and Web Development Experience
paypal.rar |