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.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
David SmithPosted Jul 7, 2011, 2:23 AM
Im commenting out this function. The rejectchange function is still not working, Im going to try something else
David SmithPosted Jul 7, 2011, 2:22 AM
Im commenting out this function. The rejectchange function is still not working, Im going to try something else
Mamta MPosted Jul 7, 2011, 1:17 AM
David SmithPosted Jul 7, 2011, 12:52 AM
this.tableBindingSource.CancelEdit();
this.demoDataSet.RejectChanges();
this.ultraGrid.UpdateData();
Mamta MPosted Jul 6, 2011, 11:17 PM
http://msdn.microsoft.com/en-us/library/system.data.dataset.rejectchanges.aspx