TTMSFNCDataGridDatabaseAdapter.OnGetHTMLTemplate Event
Fires for each cell of a templated column before its template is evaluated, so the template can differ per record.
API unit family: TMSFNCDataGridDatabaseAdapter
Declaring type: TTMSFNCDataGridDatabaseAdapter
Inherited from: TTMSFNCCustomDataGridDatabaseAdapter
Syntax
OnGetHTMLTemplate: TTMSFNCDataGridDatabaseAdapterGetHTMLTemplateEvent;
__property TTMSFNCDataGridDatabaseAdapterGetHTMLTemplateEvent OnGetHTMLTemplate = {read=FOnGetHTMLTemplate, write=FOnGetHTMLTemplate};
Remarks
Fires only for columns with a non-empty TTMSFNCDataGridDatabaseAdapterColumn.HTMLTemplate, followed by OnGetHTMLTemplateData for each placeholder.
Parameters
| Name | Description |
|---|---|
Sender |
The adapter that fires the event. |
ACol |
Zero-based adapter column index. |
ARow |
Grid row index of the cell. |
AHTMLTemplate |
On entry, the column's TTMSFNCDataGridDatabaseAdapterColumn.HTMLTemplate. Assign another template for this cell. |
AFields |
Fields of the dataset, positioned on the record of ARow. |