Skip to main content
Table of Contents

TTMSFNCDataGridDataBeforeApplyAutoFillEvent Event Type

Fired before the computed AutoFill value is written to an individual target cell, allowing the value to be changed or the write to be cancelled.

API unit family: TMSFNCDataGridData

Remarks

Fires inside a BeginUpdate/EndUpdate pair, once per target cell.

Parameters

Name Description
Sender Data object performing the fill.
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.
TargetCell The specific cell about to be written.
Direction Direction in which the fill is extending from the source.
NewValue The value about to be written; override to substitute a different value.
Accept Initialized to True. Set it to False to skip writing this cell and leave its current value unchanged; the after-apply event is then not fired.