RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBCtrlGrid.ExecuteAction Method

Executes an action with the DB control grid as its target.

Pascal
function ExecuteAction(Action: TBasicAction): Boolean; override;
C++
virtual __fastcall Boolean ExecuteAction(TBasicAction Action);

ExecuteAction is called automatically when the user invokes an action with the DB control 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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!