TcxDBFilterControl.Items Property
Specifies the collection of fields involved in filtering.
Declaration
property Items: TcxFilterItemCollection read; write;
Property Value
Type |
---|
TcxFilterItemCollection |
Remarks
The Items property represents a collection of items referring to specific dataset fields, which can be involved in composing filter conditions in a filter control. You can use the Items property to explicitly declare items in the collection and link them to the desired fields.
By default the collection is empty. In this case, all the fields of the linked dataset are available in the filter control. The bound dataset is specified by the DataSet property.
When the Items collection is not empty and its members refer to fields from the linked dataset (via the FieldName property), only specified items (represented by the Caption property values) will be displayed in the dropdown list of items to which filtering can be applied.
Additionally, you can use either the mechanism of a repository and repository items (RepositoryItem) or the PropertiesClass and Properties objects to assign an editor to an item. The assigned editor will be used to edit the value to which the item is compared.