Skip to main content

TcxFilterCriteriaItemList.AddItem(TObject,TcxFilterOperatorKind,Variant,string) Method

Adds a simple condition to the current filter criteria list.

Declaration

function AddItem(AItemLink: TObject; AOperatorKind: TcxFilterOperatorKind; const AValue: Variant; const ADisplayValue: string): TcxFilterCriteriaItem; overload;

Parameters

Name Type
AItemLink TObject
AOperatorKind TcxFilterOperatorKind
AValue Variant
ADisplayValue string

Returns

Type
TcxFilterCriteriaItem

Remarks

The AddItem method adds a new simple condition to the current list provided by the TcxFilterCriteriaItemList object. A simple condition contains a single comparison operation. The AItemLink parameter specifies the item for which the new filter condition is created. The comparison operator is defined by the AOperatorKind parameter and the comparison value is passed in the AValue parameter. You can supply a string via the ADisplayValue parameter and this will be displayed in the filter status bar when the filter condition is applied to your grid control. Parameters passed to the AddItem method are used to initialize properties of the TcxFilterCriteriaItem object.

See Also