A newer version of this page is available. Switch to the current version.

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.1.dll

Declaration

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

Property Value

Type Default Description
FindPanelBehavior

Default

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

Available values:

Name Description
Default

When the WindowsFormsSettings.FindPanelBehavior property is set to Default, the actual setting is Filter. When a control’s OptionsFind.Behavior property is set to Default, the actual setting is specified by the WindowsFormsSettings.FindPanelBehavior property.

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 Find Panel supports two modes:

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

FindPanelBehavior_Filter FindPanelBehavior_Search

To specify the behavior, use:

  • for the entire application — the WindowsFormsSettings.FindPanelBehavior property. If this setting is set to Default, the Filter mode is applied;
  • for the current control — the ColumnView.OptionsFind.Behavior property (the current property). If this setting is set to Default, the WindowsFormsSettings.FindPanelBehavior property is applied.

To specify whether to highlight the query in data, use the ColumnViewOptionsFind.HighlightFindResults property.

See Also