Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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

#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