RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClientDataSetUndo Class

TClientDataSetUndo causes a target client dataset to back out the last edit to the current record.

Pascal
TClientDataSetUndo = class(TDataSetAction);
C++
class TClientDataSetUndo : public TDataSetAction;

Add TClientDataSetUndo to an action list or action manager to allow users to back out the last edit to the current record of a client dataset. Controls such as menu items and tool buttons linked to this action cause the target dataset to undo the last edit. 

TClientDataSetUndo is designed to work with a target that is a TDataSource component whose dataset is a TClientDataSet instance. You can explicitly provide this target by setting the DataSource property, or you can allow the action to infer the data source from an active data-aware control. TClientDataSetUndo automatically disables itself if it does not have a target data source attached to an active client dataset. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!