Skip to main content
All docs
V24.2

GridOptionsFilter.ShowInHeaderSearchResults Property

Gets or sets whether to display search results within the column header when InHeaderSearchMode is enabled.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

[DefaultValue(ShowInHeaderSearchResultsMode.Default)]
[XtraSerializableProperty]
public virtual ShowInHeaderSearchResultsMode ShowInHeaderSearchResults { get; set; }

Property Value

Type Default Description
DevExpress.XtraGrid.Views.Grid.ShowInHeaderSearchResultsMode Default

A value that specifies whether to display search results within the column header.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowInHeaderSearchResults
GridView
.OptionsFilter .ShowInHeaderSearchResults

Remarks

Set the ShowInHeaderSearchResults property to ShowInHeaderSearchResultsMode.TextAndPosition and InHeaderSearchMode to GridInHeaderSearchMode.TextSearch to display the search string and the number of results found in the column header (see the screenshot below).

ShowInHeaderSearchResults - WinForms Data Grid

See Also