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

DataViewBase.ShowSearchPanelMode Property

Gets or sets a value that specifies when the Search Panel is displayed.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v18.2.Core.dll

Declaration

public ShowSearchPanelMode ShowSearchPanelMode { get; set; }

Property Value

Type Description
ShowSearchPanelMode

A ShowSearchPanelMode enumeration member that specifies when the Search Panel is displayed.

Available values:

Name Description
Default

Never if the GridControl is bound to a virtual source; otherwise, HotKey.

HotKey

CTRL+F - Invokes the Search Panel. Ensure that no cell editor is opened before invoking the Find Panel. Otherwise, the shortcut will be intercepted by the in-place editor.

The Close button (if displayed) hides the Search Panel.

ESC - Clears the search box. If the search box is empty, pressing ESC closes the Search Panel.

Always

The Search Panel is always visible, it cannot be hidden by an end-user. The close button is hidden.

Never

The Search Panel is hidden and cannot be shown by the end-user.

Remarks

By default, an end-user can show and hide the Search Panel when required. To display the Search Panel, an end-user should press CTRL+F or select ‘Show Search Panel’ item of a column’s context menu. To hide the Search Panel, an end-user should do one of the following: click the Close button (if visible), use ESC (the first press clears the search box; the second press closes the Search Panel) or select the ‘Hide Search Panel’ item of a column’s context menu.

Search Panel

To display the Search Panel within a View and prevent an end-user from hiding it, set the ShowSearchPanelMode property to ShowSearchPanelMode.Always. To hide the Search Panel and prevent an end-user from showing it, set the ShowSearchPanelMode property to ShowSearchPanelMode.Never.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowSearchPanelMode 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.

See Also