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.comwww.prenia.comWeblog: blogs.prenia.com/cathi