Vcl.DBGrids.TCustomDBGrid.UpdateAction
Delphi
function UpdateAction(Action: TBasicAction): Boolean; override;
C++
virtual bool __fastcall UpdateAction(System::Classes::TBasicAction* Action);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TCustomDBGrid |
Description
Updates an action to reflect the current state of the grid.
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 TCustomDBGrid, UpdateAction checks whether the action relies on the state of the associated dataset, and if so, updates the action accordingly.