TTMSFNCDataBinder.ConnectList Method
Creates a list binding from multiple dataset fields to component sub-properties.
API unit family: TMSFNCDataBinding
Declaring type: TTMSFNCDataBinder
Overloads
Overload 1
Creates a list binding from multiple dataset fields to component sub-properties.
function ConnectList(AObject: TObject; ADataSource: TDataSource; APropertyName: string; ASubPropertyNames: TTMSFNCDataBinderStringArray; ASubFieldNames: TTMSFNCDataBinderStringArray): TTMSFNCDataBinderItem; overload;
Parameters
| Name | Description |
|---|---|
AObject |
Component whose list property is populated. |
ADataSource |
Data source supplying the dataset. |
APropertyName |
Name of the list property on the component. |
ASubPropertyNames |
Sub-property names within each list item. |
ASubFieldNames |
Dataset field names mapped to each sub-property. |
Returns
The new binding item added to the Items collection.
Overload 2
Creates a list binding from a single dataset field to a component list property.
function ConnectList(AObject: TObject; ADataSource: TDataSource; APropertyName: string; AFieldName: string): TTMSFNCDataBinderItem; overload;
Parameters
| Name | Description |
|---|---|
AObject |
Component whose list property is populated. |
ADataSource |
Data source supplying the dataset. |
APropertyName |
Name of the list property on the component. |
AFieldName |
Name of the dataset field mapped to each list item. |
Returns
The new binding item added to the Items collection.