Reputation: 775
I have an XML file called employee. I want to bind the XML file to a GridView.
Upvotes: 1
Views: 173
Reputation: 100288
You probably is looking for asp:XmlDataSource:
<asp:XmlDataSource runat="server" ID="XmlDataSource1" DataFile="~/App_Data/data.xml" XPath="//item" />
Upvotes: 1
Reputation: 7351
yes you can via DataSet then bind dataSet object to datagrid. http://msdn.microsoft.com/en-us/library/84sxtbxh(VS.71).aspx
Upvotes: 0