Rejecting dataset changes, partially

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I have a typed dataset wich is being edited by the user, but the changes
aren't pulled into the database, until he press the Ok button. The user edits
in a form where he can create records in two tables (master-detail). The
problem is if the user Cancels the operation, if I do a Dataset.RejectChanges
it rejects all the changes made in other records, if I do a AcceptChanges
when starts editing, then I loose the rowstatus of the other records and
never become saved.

Is there any way to create any kind of "Rejection Point" in a dataset, so
when rejecting just reject from this rejection point so far ??

Any idea will help me a lot! Thanks
 
Create a copy of dataset each time you want.
If you want to restore it, copy that data into source dataset or just change
reference to the right dataset.
 
Back
Top