user354547
user354547

Reputation: 775

XML as DataSource

I have an XML file called employee. I want to bind the XML file to a GridView.

Upvotes: 1

Views: 173

Answers (2)

abatishchev
abatishchev

Reputation: 100288

You probably is looking for asp:XmlDataSource:

<asp:XmlDataSource runat="server" ID="XmlDataSource1" DataFile="~/App_Data/data.xml" XPath="//item" />

Upvotes: 1

Arseny
Arseny

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

Related Questions