A DiffGram is an XML document that contains all of the data from DataSet object, includeing the orginal DataRow object information.
To save as a DiffGram, use the XmlWriteMode.DiffGram enumeration value as bellows:
DataSet objDSet = new DataSet();objDataAdapter.Fill(objDSet);// data manupulation code of the dataset/datatable objectobjDSet.WriteXml(Server.MapPath("dXml.xml"), XmlWriteMode.DiffGram);
The DiffGram contains all of the DataRowVersion information in the XML document.
The Diffgram is mostly used in the environment where a user occasionally connects to a database to synchronize a disconnected DataSet object with the current information.
Thanks
Md. Elias HossainMCP, MCTS(WEB) Software Engineer
"The Diffgram is mostly used in the environment where a user occasionally connects to a database to synchronize a disconnected DataSet"
If you have time can you please give us a sample demo/code or describe how it can be done generally? That will be so kind of you.
"Excuse if any gaffe."Md Nazmul AhsanProgrammer (.NET Framework)CIS, IADCS & DIT
Hello Mr. Nazmul, First of all I'm so sorry for late as I'm passing a busy and awful time. Yet I like to share with anybody anything.
Also thanks a lot to you for asking real time sample. I've attached the file to my share file, you can see following the links bellow:
At My Files: http://msdnbangladesh.net/members/dotnetmaestro/default.aspx (at right-bottom side)
Direct Download: http://msdnbangladesh.net/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.23.08/DiffGramTest_2D002D00_01_2D002D00_05_2D002D00_2010.zip
Thanks Elias vi for share this real time sample. Hope this can be help other to develop disconnected database sync. application.