Back to Devexpress

FilterControl.FilterCriteria Property

windowsforms-devexpress-dot-xtraeditors-dot-filtercontrol-2e0aa727.md

latest3.1 KB
Original Source

FilterControl.FilterCriteria Property

Gets or sets the total filter expression.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
CriteriaOperator

A CriteriaOperator descendant that represents the total filter expression.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FilterCriteria property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XDL_how-to-convert-the-criteriaoperator-to-a-lambda-expression-to-use-it-for-iqueryable-e2596/CS/WindowsFormsApplication152/Form1.cs#L61

csharp
CriteriaToExpressionConverter converter = new CriteriaToExpressionConverter();
IQueryable<Products> filteredData = source.AppendWhere(converter, filterControl1.FilterCriteria) as IQueryable<Products>;
gridControl1.DataSource = null;

XDL_how-to-convert-the-criteriaoperator-to-a-lambda-expression-to-use-it-for-iqueryable-e2596/VB/WindowsFormsApplication152/Form1.vb#L45

vb
Dim converter As CriteriaToExpressionConverter = New CriteriaToExpressionConverter()
Dim filteredData As IQueryable(Of Products) = TryCast(source.AppendWhere(converter, filterControl1.FilterCriteria), IQueryable(Of Products))
gridControl1.DataSource = Nothing

See Also

FilterString

ApplyFilter()

FilterControl Class

FilterControl Members

DevExpress.XtraEditors Namespace