Skip to main content

TcxFilterItem Class

In filter controls, represents a dataset field that can be involved in filtering.

Declaration

TcxFilterItem = class(
    TcxInterfacedCollectionItem,
    IcxEditRepositoryItemListener
)

Remarks

Filter controls of the TcxDBFilterControl type use the Items collection to maintain a list of specific explicitly declared filter items. Such items (if any is declared by you) represent dataset fields, which are available for constructing filter conditions. The TcxFilterItem class represents an individual item of the Items collection. It can be accessed via the collection’s Items property.

The TcxFilterItem object introduces the FieldName property, which points to the required field from the linked dataset. This field will be represented in a filter control using the name specified by the Caption property.

The TcxFilterItem object allows you to specify the type of editor associated with the filter item. The specified editor will be used for editing the value to which item values are compared. You can assign a particular editor for a filter value via the Properties property or use the repository mechanism and the RepositoryItem property.

See Also