Vcl.DBClientActns.TClientDataSetUndo
Delphi
TClientDataSetUndo = class(TDataSetAction)
C++
class PASCALIMPLEMENTATION TClientDataSetUndo : public Vcl::Dbactns::TDataSetAction
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | Vcl.DBClientActns.pas Vcl.DBClientActns.hpp |
Vcl.DBClientActns | Vcl.DBClientActns |
Description
TClientDataSetUndo causes a target client dataset to back out the last edit to the current record.
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.