Back to Devexpress

ColumnViewOptionsFind.Behavior Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-columnviewoptionsfind.md

latest3.9 KB
Original Source

ColumnViewOptionsFind.Behavior Property

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

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(FindPanelBehavior.Default)]
[DXCategory("Data")]
[XtraSerializableProperty]
public virtual FindPanelBehavior Behavior { get; set; }
vb
<DXCategory("Data")>
<DefaultValue(FindPanelBehavior.Default)>
<XtraSerializableProperty>
Public Overridable Property Behavior As FindPanelBehavior

Property Value

TypeDefaultDescription
FindPanelBehaviorDefault

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

|

Available values:

NameDescription
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.

| | Search |

Highlight search results in cells and on the scrollbar. A search behavior is not supported in server mode.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Behavior
ColumnView

.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;

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

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

HighlightFindResults

ColumnViewOptionsFind Class

ColumnViewOptionsFind Members

DevExpress.XtraGrid.Views.Base Namespace