windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsfilter-145b0e84.md
Gets or sets whether to display search results within the column header when InHeaderSearchMode is enabled.
Namespace : DevExpress.XtraGrid.Views.Grid
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DefaultValue(ShowInHeaderSearchResultsMode.Default)]
[XtraSerializableProperty]
public virtual ShowInHeaderSearchResultsMode ShowInHeaderSearchResults { get; set; }
<DefaultValue(ShowInHeaderSearchResultsMode.Default)>
<XtraSerializableProperty>
Public Overridable Property ShowInHeaderSearchResults As ShowInHeaderSearchResultsMode
| Type | Default | Description |
|---|---|---|
| DevExpress.XtraGrid.Views.Grid.ShowInHeaderSearchResultsMode | Default |
A value that specifies whether to display search results within the column header.
|
You can access this nested property as listed below:
| Object Type | Path to ShowInHeaderSearchResults |
|---|---|
| GridView |
.OptionsFilter .ShowInHeaderSearchResults
|
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).
See Also