Skip to main content

TcxFilterItem.FieldName Property

Specifies the name of a dataset field represented by an item.

Declaration

property FieldName: string read; write;

Property Value

Type
string

Remarks

Use the FieldName property to specify the name of the linked dataset’s field being referenced by a filter item.

Data-aware filter controls are used to filter data of bound datasets. A dataset object can be linked to a filter control via the DataSet property. By default, all the dataset’s filterable fields can be involved in building and applying filter conditions, but you can specify a subset of fields to be available for filtering. For this purpose, you should explicitly declare filter items in the Items collection. These items will represent the required fields. The FieldName property of an individual collection item should be set to the name of the corresponding field from the linked dataset.

Note

If any field of the linked dataset contains blanks within its name, a filter item for such a field should be declared explicitly and the FieldName property of the item should contain the corresponding field’s name enclosed in square brackets.

See Also