Back to Devexpress

ColumnViewOptionsFind.ClearFindOnClose Property

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

latest3.0 KB
Original Source

ColumnViewOptionsFind.ClearFindOnClose Property

Gets or sets whether the Find Panel‘s search (filter) string is cleared when the Find Panel is hidden.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ClearFindOnClose { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property ClearFindOnClose As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the Find Panel’s search string is cleared on hiding the panel; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ClearFindOnClose
ColumnView

.OptionsFind .ClearFindOnClose

|

Remarks

If the ClearFindOnClose property is enabled, the Find Panel’s search string (ColumnView.FindFilterText) is cleared on hiding the panel.

An end-user can hide the Find Panel by clicking the close (‘x’) button, provided that the ColumnViewOptionsFind.ShowCloseButton property is set to true and the ColumnViewOptionsFind.AlwaysVisible property is set to false. In code, the Find Panel can be hidden via the ColumnView.HideFindPanel method.

See Also

AlwaysVisible

ShowCloseButton

FindFilterText

HideFindPanel()

ColumnViewOptionsFind Class

ColumnViewOptionsFind Members

DevExpress.XtraGrid.Views.Base Namespace