TcxDBTreeListDataController.CreateAllItems(Boolean) Method
Creates data-aware columns for fields in the linked dataset.
Declaration
procedure CreateAllItems(AMissingItemsOnly: Boolean = False); virtual;
Parameters
Name | Type |
---|---|
AMissingItemsOnly | Boolean |
Remarks
Pass True as the AMissingItemsOnly parameter to create columns only for fields that are not linked to any column. Otherwise, this procedure creates columns for all dataset fields.
The procedure creates a column, assigns its DataBinding.FieldName property, and adds the column to the TreeList control’s Columns collection. The column’s visibility is defined by the Visible property of the bound TField object.
The procedure creates columns in the first bottom band in the TreeList control’s Bands collection. If this collection is empty, the procedure adds a new band and creates columns in it.
See Also