.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

XPBaseCollection.Filter Property

Gets or sets the criteria used to filter objects on the client side.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

[Browsable(false)]
public CriteriaOperator Filter { get; set; }
<Browsable(False)>
Public Property Filter As CriteriaOperator

Property Value

Type Description
CriteriaOperator

A CriteriaOperator object that specifies the criteria to filter objects on the client side.

Remarks

The XPBaseCollection.Criteria property specifies the criteria used to filter objects on the storage side. After objects that meet these criteria are retrieved to the XPBaseCollection, they are filtered again by the Filter criteria.

To disable the criteria specified by the Filter property set this property to null (Nothing in Visual Basic).

Unlike the XPCollection's XPBaseCollection.Criteria, Filter criteria can be built on non-persistent properties.

NOTE

For performance reasons, we recommend that you not use the JoinOperand when building criteria for the Filter property, as this significantly increases the number of queries sent to the server.

Implements

DevExpress.Data.Filtering.Helpers.IFilteredDataSource.Filter
See Also