RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetAction Class

TDataSetAction is the base class for action objects that act on dataset components.

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

TDataSetAction implements the common behavior for actions that work with datasets. Each descendant class performs a specific database function. Do not use TDataSetAction directly in an application. Instead, use a TDataSetAction descendant such as TDataSetCancel, TDataSetDelete, TDataSetEdit, TDataSetFirst, TDataSetInsert, TDataSetLast, TDataSetNext, TDataSetPost, TDataSetPrior, or TDataSetRefresh

TDataSetAction ensures that the action is only enabled to work with a TDataSource component as its target. This TDataSource is first located as the data source that connects an active data-aware control to its source dataset. TDataSetAction saves this data source as the DataSource property, which descendants then use to perform their specific database functions. 

 

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