Back to Devexpress

LookUpEditBase.FilterCondition Property

wpf-devexpress-dot-xpf-dot-editors-dot-lookupeditbase-fceef729.md

latest3.5 KB
Original Source

LookUpEditBase.FilterCondition Property

Gets or sets the filter condition.

Namespace : DevExpress.Xpf.Editors

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public FilterCondition? FilterCondition { get; set; }
vb
Public Property FilterCondition As FilterCondition?

Property Value

TypeDescription
Nullable<FilterCondition>

A FilterCondition enumeration value that specifies the filter condition.

|

Available values:

NameDescription
Contains

Specifies the Contains comparison operation.

| | StartsWith |

Specifies the StartsWith comparison operation.

| | Like |

Specifies the Like comparison operation.

| | Default |

Specifies the default comparison operation.

| | Equals |

Specifies the Equals comparison operation.

|

Remarks

Note

The DevExpress Data Editors support the FilterCondition.Contains and FilterCondition.StartsWith conditions only.

If incremental filtering is enabled (the LookUpEditBase.IncrementalFiltering property is set to true ), end-users can filter list items dynamically based upon the text typed into the edit box (find-as-you-type filtering). The FilterCondition property specifies the filter condition (the comparison operator).

If the FilterCondition property is set to FilterCondition.Default, FilterCondition.StartsWith is used.

Note

If the Contains , Like or Equals operator is used, the LookUpEditBase.AutoComplete and BaseEdit.ValidateOnTextInput properties should be set to false.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FilterCondition 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.

wpf-lookupedit-filter-by-multiple-columns/CS/MainWindow.xaml#L15

xml
ImmediatePopup="True"
FilterCondition="Contains"
SubstituteDisplayFilter="lookUpEdit_SubstituteDisplayFilter">

See Also

LookUpEditBase Class

LookUpEditBase Members

DevExpress.Xpf.Editors Namespace