Skip to main content
Table of Contents

TTMSFNCDataGridData.OnAutoFillCalculateValue Event

Fired while AutoFill calculates a value, before the built-in pattern logic runs.

API unit family: TMSFNCDataGridData Declaring type: TTMSFNCDataGridData

Syntax

FMX.TMSFNCDataGridData.hppPascalC++
OnAutoFillCalculateValue: TTMSFNCDataGridDataAutoFillCalculateValueEvent;
__property TTMSFNCDataGridDataAutoFillCalculateValueEvent OnAutoFillCalculateValue = {read=FOnAutoFillCalculateValue, write=FOnAutoFillCalculateValue};

Remarks

This event is the earliest per-cell AutoFill extension point. A handled value still passes through OnBeforeApplyAutoFill, where it can be changed or rejected.

Parameters

Name Description
Sender Data object that fired the event.
SourceCells Rectangular range of source cells used as the fill seed.
SourceValues Flat array of cell values read from SourceCells.
TargetCells Full rectangular range being filled.
FillIndex Zero-based position of the current target cell within the fill sequence.
Direction Direction in which the fill extends from the source range.
NewValue Candidate value. Set this together with Handled to replace the built-in result.
Handled Set to True to accept NewValue and skip the built-in calculation; leave False to continue with automatic pattern handling.