TTMSFNCDataGridDatabaseAdapterColumns Class
Ordered collection of TTMSFNCDataGridDatabaseAdapterColumn items that define which dataset fields the grid shows, in which order, and how.
API unit family: TMSFNCDataGridDatabaseAdapter
Inherits from: TTMSFNCOwnedCollection
Syntax
TTMSFNCDataGridDatabaseAdapterColumns = class(TTMSFNCOwnedCollection)
class PASCALIMPLEMENTATION TTMSFNCDataGridDatabaseAdapterColumns : public TTMSFNCOwnedCollection
Remarks
Owned by the adapter and exposed as TTMSFNCCustomDataGridDatabaseAdapter.Columns; do not free it. Item order equals grid column order after the fixed columns. Adding, deleting, or moving items adds, deletes, or moves the matching grid columns.
Properties
| Name | Description |
|---|---|
| Items | Accesses database adapter column mappings by zero-based index. |
Methods
| Name | Description |
|---|---|
| Adapter | Returns the database adapter that owns this column collection. |
| Add | Adds a new, unbound column mapping to the end of the collection. |
| HasFieldsDefined | Checks whether the collection contains explicitly defined field mappings. |
| Insert | Inserts a new, unbound column mapping at the specified position. |