FIX: Add Method of the DataRowCollection Does Not Reflect Changes in XmlDataDocument View (320849)
The information in this article applies to:
- Microsoft ADO.NET (included with the .NET Framework) 1.0
- Microsoft .NET Framework Class Libraries 1.0
This article was previously published under Q320849 SYMPTOMS The "Synchronizing a DataSet with an XmlDataDocument"
Microsoft Developer Network (MSDN) topic has the following information:
The .NET Framework enables real-time, synchronous access
to both the relational and hierarchical representations of data through the DataSet object and the XmlDataDocument object, respectively.
When a DataSet is synchronized with an XmlDataDocument, both objects are working with a single set of data.
However, if new rows are added to the DataSet by using an object array, the DataSet and XmlDataDocument objects are not synchronized. The new rows cannot be seen in the XMLDataDocument object.
RESOLUTION Use the DataRow object instead of an object array to add new rows to the DataTable. This produces the expected behavior and both DataSet and XMLDataDocument objects are synchronized as expected. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
This bug was corrected in Microsoft ADO.NET (included with the .NET Framework)
1.1, and Microsoft .NET Framework Class Libraries 1.1 .
REFERENCES For more information, visit the following Microsoft
Developer Network (MSDN) Web site:
Modification Type: | Minor | Last Reviewed: | 4/29/2003 |
---|
Keywords: | kbfix kbbug kbpending KB320849 |
---|
|