wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase.md
Gets or sets whether the grid displays only those records that match the search criteria. This is a dependency property.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public bool SearchPanelAllowFilter { get; set; }
Public Property SearchPanelAllowFilter As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true, to display only those records that match the search criteria; otherwise, false.
|
You can specify how to display search results:
SearchPanelAllowFilter).SearchPanelAllowFilter = true, SearchPanelHighlightResults = true
SearchPanelAllowFilter = false, SearchPanelHighlightResults = true, ScrollBarAnnotationMode = SearchResult
Run Demo: Search Panel - Filter Mode Run Demo: Search Panel - Highlight Mode
The GridControl raises filter events (FilterChanged, FilterGroupSortChanging, and so on) when users search data with the SearchPanelAllowFilter option enabled.
The following code snippets (auto-collected from DevExpress Examples) contain references to the SearchPanelAllowFilter 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.
ShowSearchPanelMode="Never"
SearchPanelAllowFilter="False"
ShowTotalSummary="True"/>
wpf-grid-scrollbar-annotations/CS/WpfApplication25/MainWindow.xaml#L29
<dxg:GridControl.View>
<dxg:TableView x:Name="myView" AllowPerPixelScrolling="True" ShowSearchPanelMode="Always" ScrollBarAnnotationMode="{Binding EditValue, ElementName= myListBoxEdit, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay }" ScrollBarCustomRowAnnotation ="MyScrollBarCustomRowAnnotationEventHandler" SearchPanelAllowFilter="False" Loaded="MyLoadedEventHandler">
<dxg:TableView.FormatConditions>
See Also