Table of Contents

TTMSFNCDataBinder.ConnectColumnList Method

Creates a column-list binding that populates both column headers and list items from the dataset.

API unit family: TMSFNCDataBinding Declaring type: TTMSFNCDataBinder

Syntax

function ConnectColumnList(AObject: TObject; ADataSource: TDataSource; AListPropertyName: string; AColumnsPropertyName: string; AColumnsSubPropertyName: string; AListSubPropertyName: string): TTMSFNCDataBinderItem;

Parameters

Name Description
AObject Component whose list and column properties are populated.
ADataSource Data source supplying the dataset.
AListPropertyName Name of the component property that holds list items.
AColumnsPropertyName Name of the component property that holds column definitions.
AColumnsSubPropertyName Sub-property within each column item used as the column header.
AListSubPropertyName Sub-property within each list item that receives field values.

Returns

The new binding item added to the Items collection.