Table of Contents

TTMSFNCDataGridDataAutoFillCalculateValueEvent Event Type

Fired during AutoFill to let the application supply a custom computed value for a target cell.

API unit family: TMSFNCDataGridData

Parameters

Name Description
Sender Grid 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 The full rectangular range being filled.
FillIndex Zero-based position of the current target cell within the fill sequence.
Direction Direction in which the fill is extending from the source.
NewValue Set to the value to write into the target cell.
Handled Set to True to use NewValue; leave False to let the grid compute the value automatically.