RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBCtrlGrid.UpdateAction Method

Updates an action to reflect the current state of the grid.

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

UpdateAction is called automatically when the application is idle allow the grid to set action properties to reflect the current state of the grid. The Action parameter is the action to be updated. UpdateAction returns a boolean that indicates whether the action was updated by the grid. 

As implemented in TDBCtrlGrid, UpdateAction checks whether the action relies on the state of the associated dataset, and if so, updates the action accordingly. 

 

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