Vcl.DBActns.TDataSetEdit.UpdateTarget
Delphi
procedure UpdateTarget(Target: TObject); override;
C++
virtual void __fastcall UpdateTarget(System::TObject* Target);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.DBActns.pas Vcl.DBActns.hpp |
Vcl.DBActns | TDataSetEdit |
Description
Enables or disables the action, depending on the state of the target dataset.
Do not call the UpdateTarget method. This method is called automatically so that actions can update themselves according to current conditions.
In TDataSetEdit, UpdateTarget checks whether the current target object (specified by the Target parameter) is a data source whose dataset is permits edits and which is not already in edit mode. If so, it sets Enabled to true. If not, UpdateTarget sets Enabled to false.