Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML data source question
Message
General information
Forum:
ASP.NET
Category:
WebForms
Miscellaneous
Thread ID:
00812411
Message ID:
00812456
Views:
13
Alan,

Try this:
string fileName = "d:\\development\\pda\\dotnet\\arcusp.xml";
DataSet newDS = new DataSet();
newDS.ReadXml(fileName, XmlReadMode.IgnoreSchema);
newDS.Tables[0].TableName = "arcusp";
...
>OK...I'm having a "stupid" day. I understand what you are saying but I'm not sure how to fix it.
>
>I have tried this, but I don't get anything in the grid. So I assume I'm not still not populating the table.
>
>string fileName = "d:\\development\\pda\\dotnet\\arcusp.xml";
>DataSet newDS = new DataSet();
>DataTable newTable = new DataTable("arcusp");
>newTable.Columns.Add("item", typeof(string));
>newDS.Tables.Add("arcusp");
>newDS.ReadXml(fileName, XmlReadMode.IgnoreSchema);
>grdIntoStock.SetDataBinding(newDS,"arcusp");
>
>Thanks again for the help
>
>Alan
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform