Back to Devexpress

GridOptionsFilter.ShowInHeaderSearchResults Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsfilter-145b0e84.md

latest2.6 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
[DefaultValue(ShowInHeaderSearchResultsMode.Default)]
[XtraSerializableProperty]
public virtual ShowInHeaderSearchResultsMode ShowInHeaderSearchResults { get; set; }
vb
<DefaultValue(ShowInHeaderSearchResultsMode.Default)>
<XtraSerializableProperty>
Public Overridable Property ShowInHeaderSearchResults As ShowInHeaderSearchResultsMode

Property Value

TypeDefaultDescription
DevExpress.XtraGrid.Views.Grid.ShowInHeaderSearchResultsModeDefault

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 TypePath 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).

See Also

InHeaderSearchMode

GridOptionsFilter Class

GridOptionsFilter Members

DevExpress.XtraGrid.Views.Grid Namespace