PC Review


Reply
Thread Tools Rate Thread

DataSet Undo System

 
 
Qvx
Guest
Posts: n/a
 
      25th Jul 2003
I'm trying to make an undo system for my application using adonet. The
idea is simple: before performing the undoable operation make the copy
of dataset. If the user wants to undo the changes, then restore the
data from the old dataset.

I have the following issues:

1. Many objects througth the form have references to a dataset and/or
it's tables. So it is not enough just to replace the _dataSet variable
but I would need to rebind all controls. I don't like it.

2. Because of what I said in the first bullet I am trying to replace
the data inside the existing dataset like this:

if (_copyOfDataSet != null) {
_dataSet.Clear();
_dataSet.Merge(_copyOfDataSet, false);
}

but I'm far from sure that it warks as expected. So far, my simple
experiments have shown that it works but I'm looking for your ideas
and suggestions.

Actually there are n copies of dataset after the user performs n
undoable operations so I'm not looking for Accept/Reject Changes
solution which would support only one "undo" operation.

Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to cast object of type 'System.Data.DataSet' to Typed DataSet Optimus Microsoft VB .NET 1 31st Jan 2006 06:26 AM
Newbie: Undo DataSet change? Sal Bompensaro Microsoft C# .NET 2 5th Nov 2004 10:37 PM
Newbie: Undo DataSet change? Sal Bompensaro Microsoft ADO .NET 2 5th Nov 2004 10:37 PM
can't undo a system restore Bill Windows XP Setup 1 10th May 2004 10:22 PM
Undo System Restore - Undo Option Not Present After Restore =?Utf-8?B?ZGF2ZSBsb25pY28=?= Windows XP Help 0 3rd Apr 2004 11:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:12 PM.