Vcl.DBGrids.TCustomDBGrid.ExecuteAction
Delphi
function ExecuteAction(Action: TBasicAction): Boolean; override;
C++
DYNAMIC bool __fastcall ExecuteAction(System::Classes::TBasicAction* Action);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TCustomDBGrid |
Description
Executes an action with the DB grid as its target.
ExecuteAction is called automatically when the user invokes an action with the DB grid as its target. The Action parameter specifies the action that was invoked. ExecuteAction returns a boolean value indicating whether the action was successfully executed.
ExecuteAction first calls the inherited method, which checks whether the action knows how to execute with the grid as a target. If this does not successfully dispatch the action, ExecuteAction attempts to invoke the action with the grid's associated dataset as a target.