TTMSFNCDataGridDataAdapter Class
Abstract base for components that connect an external data source, such as a dataset, to the data engine.
API unit family: TMSFNCDataGridData
Inherits from: TTMSFNCCustomComponent
Syntax
TTMSFNCDataGridDataAdapter = class(TTMSFNCCustomComponent)
class PASCALIMPLEMENTATION TTMSFNCDataGridDataAdapter : public TTMSFNCCustomComponent
Remarks
A descendant supplies cell data, formatting and properties on demand, writes edits back, and reports through its sort, group, filter and scroll modes which operations it handles itself. The data engine consults the adapter before its own events: for example the adapter provides a cell value before TTMSFNCDataGridData.OnGetCellData fires. Destroying the adapter detaches it from its data instance.
Properties
| Name | Description |
|---|---|
| Active | True (the default) lets the adapter drive the grid from its data source; set it to False to stop loading data without disconnecting the adapter. |
| DataInstance | The data engine instance this adapter is bound to, or nil when it is not connected. |