TTMSFNCCustomDataGrid.AutoFillCustomListSet Method
Registers or replaces a custom cyclic auto-fill sequence (for example quarters or project phases).
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCCustomDataGrid
Syntax
procedure AutoFillCustomListSet(const AKey: string; const AValues: array of string);
void __fastcall AutoFillCustomListSet(const System::UnicodeString AKey, const System::UnicodeString *AValues, const System::NativeInt AValues_High);
Remarks
When a seed value matches an entry of a registered list, auto-fill continues the sequence and wraps around at the end.
Parameters
| Name | Description |
|---|---|
AKey |
Key identifying the list; an existing list with the same key is replaced. |
AValues |
Ordered values of the sequence. The values are copied. |
Examples
Grid.AutoFillCustomListSet('quarters', ['Q1', 'Q2', 'Q3', 'Q4']);