Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Adds a new simple filter condition to the specified filter condition list.

#Declaration

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

#Parameters

Name Type
AParent TcxFilterCriteriaItemList
AItemLink TObject
AOperatorKind TcxFilterOperatorKind
AValue Variant
ADisplayValue string

#Returns

Type
TcxFilterCriteriaItem

#Remarks

This function adds a new simple filter condition to the list specified by the AParent parameter. If AParent is NIL, a new filter condition is inserted in the root list provided by the Root property. AItemLink defines the item for which the condition is applied.

The AddItem function returns a TcxFilterCriteriaItem object representing a simple condition. The AOperatorkind, AValue, and ADisplayValue parameters are used to initialize the OperatorKind, Value, and DisplayValue properties of the created object, respectively.

See Also