I want to know how to undo changes to a dataset prior to save.
At the moment I insert storedprocedure to the database or dataset, but now I want to undo the insert.
Can someone point me to the right direction.
C# Dataset undo changes
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Mamta MRank #268 · 9.4K reputationPosted Jul 6, 2011, 7:17 PM EDT
http://msdn.microsoft.com/en-us/library/system.data.dataset.rejectchanges.aspx
David SmithRank #999 · 2K reputationPosted Jul 6, 2011, 8:52 PM EDT
this.tableBindingSource.CancelEdit();
this.demoDataSet.RejectChanges();
this.ultraGrid.UpdateData();
Mamta MRank #268 · 9.4K reputationPosted Jul 6, 2011, 9:17 PM EDT
David SmithRank #999 · 2K reputationPosted Jul 6, 2011, 10:22 PM EDT
Im commenting out this function. The rejectchange function is still not working, Im going to try something else
David SmithRank #999 · 2K reputationPosted Jul 6, 2011, 10:23 PM EDT
Im commenting out this function. The rejectchange function is still not working, Im going to try something else