C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Store the changes in the dataset as XML Diffgram


Posted Date: 23 Apr 2007    Resource Type: Code Snippets    Category: ADO.NET

Posted By: Balamurali Balaji       Member Level: Diamond
Rating:     Points: 10



This code sample stores the changes made in the dataset into an XML file as Diffgram. It stores both the old and new values of the rows that underwent changes.




DataSet1 ds1;
private void button3_Click(object sender, System.EventArgs e)
{
ds1 = (DataSet1) dataSet11.GetChanges();
ds1.WriteXml(@"C:\bala.xml", System.Data.XmlWriteMode.DiffGram);
}






Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Create a transaction in ADO.NET and commit or rollback
Previous Resource: Read and Apply XML(Diffgram) file on a DataSet
Return to Discussion Resource Index
Post New Resource
Category: ADO.NET


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

it outsourcing

Contact Us    Privacy Policy    Terms Of Use