TTMSFNCDataGridData.OnBeforeApplyAutoFill Event
Fired after an AutoFill value is calculated and before it is written to a target cell.
API unit family: TMSFNCDataGridData
Declaring type: TTMSFNCDataGridData
Syntax
OnBeforeApplyAutoFill: TTMSFNCDataGridDataBeforeApplyAutoFillEvent;
__property TTMSFNCDataGridDataBeforeApplyAutoFillEvent OnBeforeApplyAutoFill = {read=FOnBeforeApplyAutoFill, write=FOnBeforeApplyAutoFill};
Remarks
Rejecting a write suppresses OnAfterApplyAutoFill for that target cell. Other cells in the target range continue to be processed.
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. |
TargetCell |
Specific cell about to be written. |
Direction |
Direction in which the fill extends from the source range. |
NewValue |
Calculated value. Change it to substitute the value written to TargetCell. |
Accept |
Initially True. Set to False to leave the target cell unchanged. |