TTMSFNCDataGridDataAutoFillCalculateValueEvent Event Type
Fired for each target cell while AutoFill calculates its value, before the built-in pattern logic runs.
API unit family: TMSFNCDataGridData
Remarks
A handled value still passes through TTMSFNCDataGridDataBeforeApplyAutoFillEvent, where it can be changed or rejected.
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. |
FillIndex |
Position of the current target cell in the fill sequence, counted from the source range. |
Direction |
Resolved direction in which the fill extends from the source; never gafdAuto. |
NewValue |
On entry, the source value that corresponds to this target cell. Assign the value to write and set Handled. |
Handled |
Initialized to False. Set it to True to use NewValue and skip the built-in calculation. |