Hello NG,
I am using a typed DataSet, created with VS dataset designer.
I have the problem , that a table in the dataset refuses to read a xml file.
The strange thing is that if I create a seperate datatable, using the Typed
DataSet.Table this reads the xml file without any problems:
To make it a little more clear:
public class MyClass
{
....
DsMyDataSet myDataSet; // gets initalized in the constructor
....... some when at runtime this method is called ....
void MyReadFromFile(fileName)
{
myDataSet.myTable.ReadXml(fileName); // fails to read the xml
fail, table has 0 columns
DsMyDataSet.myTableTable tbl = new DsMyDataSet.myTableTable tbl();
tbl.ReadXml(fileName); // works fine, that table holds a bunch of
rows.
}
}
PLEASE HELP. What is it that I am doing wrong?
Regards
Rainer Queck