Skip to main content
A newer version of this page is available. .

ColumnViewOptionsFind.Behavior Property

Gets or sets whether records that do not match the query are hidden.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

[DXCategory("Data")]
[DefaultValue(FindPanelBehavior.Default)]
[XtraSerializableProperty]
public virtual FindPanelBehavior Behavior { get; set; }

Property Value

Type Default Description
FindPanelBehavior **Default**

A FindPanelBehavior enumeration value that specifies whether records that do not match the query are hidden.

Available values:

Name Description
Default

The behavior depends on the static (Shared in VB) WindowsFormsSettings.FindPanelBehavior property. If the latter property is also set to Default, the Filter mode is applied.

Filter

Hide records that do not match a query. Highlight search results in cells.

FindPanelBehavior_Filter

Search

Highlight search results in cells and on the scrollbar.

FindPanelBehavior_Search

Property Paths

You can access this nested property as listed below:

Object Type Path to Behavior
AdvBandedGridView
.OptionsFind.Behavior
BandedGridView
.OptionsFind.Behavior
ColumnView
.OptionsFind.Behavior
CardView
.OptionsFind.Behavior
GridView
.OptionsFind.Behavior
LayoutView
.OptionsFind.Behavior
TileView
.OptionsFind.Behavior
WinExplorerView
.OptionsFind.Behavior

Remarks

The Behavior property specifies how to show search results:

  • Filter — hides records that do not match the query, and (optionally) highlights results in the view;

    FindPanelBehavior_Filter

  • Search — highlights results in the view and on the scrollbar

    FindPanelBehavior_Search

If this property is set to Default, the behavior depends on the static (Shared in VB) WindowsFormsSettings.FindPanelBehavior property. If the latter property is also set to Default, the Filter mode is applied.

To specify whether to highlight results, use the ColumnView.OptionsFind.HighlightFindResults property.

See Also