Hi Mike,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to read data in an XML file to
a DataSet and bind some label controls to the DataSet. If there is any
misunderstanding, please feel free to let me know.
As far as I know, this depends on how the Xml file is generated. If it is
exported with DataSet.WriteXml, we can simply use DataSet.ReadXml to read
this to the DataSet. However, if it is an xml file which doesn't meet the
DataSet format, I think we have to make some changes to it or use an
XmlDocument to read data and add it to DataSet row by row.
When the DataSet is populated, we can use data binding to show the data in
the DataSet on label controls. Suppose we have a DataSet ds, a label
label1, the table name is Table1, we can use the following to show FistName
field on label1.
this.label1.DataBindings.Add("Text", ds, "Table1.FirstName");
For more information, please check:
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemdatadatasetclassreadxmltopic2.asp
HTH.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."