O'Reilly logo

Extending MFC Applications with the .NET Framework by Nishant Sivakumar, Tom Archer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with DiffGrams

A DiffGram is an XML document that is used to identify current and original versions of data elements. Because a DiffGram can be defined to contain only modified data rows, it is the most efficient means of transferring DataSet objects for the purpose of updating a remote data store. In fact, the DataSet internally uses DiffGrams to load and persist its contents, and to serialize its contents for transport.

A DataSet can be written as a DiffGram by specifying a value of XmlWriteMode::DiffGram when calling the DataSet::WriteXml method. When this is done, the resulting XML file is populated with all the necessary information to accurately recreate the contents, though not the schema, of the DataSet, including column values ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required