FMX.Grid.TGridModel.DoCallbackGetValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DoCallbackGetValue(Col, Row: Integer; ACallback: TProc<TValue>); virtual;

C++

virtual void __fastcall DoCallbackGetValue(int Col, int Row, System::DelphiInterface<System::Sysutils::TProc__1<System::Rtti::TValue> > ACallback);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.Grid.pas
FMX.Grid.hpp
FMX.Grid TGridModel

Description

Dispatches the OnCallbackGetValue event if an event handler is defined, or executes ACallback otherwise.

The model executes DoCallbackGetValue when a value for a cell is requested and the model needs to obtain the value from the underlying data source, either because the value is not yet in the internal cache or because the value request included an option to override the internal cache.

If there is an event handler defined for OnCallbackGetValue, DoCallbackGetValue executes that event handler. If the event handler of OnCallbackGetValue does not execute ACallback, DoCallbackGetValue executes ACallback with TValue.Empty as parameter.

If there is no event handler defined for OnCallbackGetValue, DoCallbackGetValue executes ACallback with the value of the cell located at the specified column number (ACol) and row number (ARow) as parameter.