Skip to main content
All docs
V24.1

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 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

OptionsColumnFilter.InHeaderSearchPrompt Property

Gets or sets a grayed out hint displayed in an empty header search box when the search box is activated.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.1.dll

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

#Declaration

[DefaultValue("")]
[XtraSerializableProperty]
public virtual string InHeaderSearchPrompt { get; set; }

#Property Value

Type Default Description
String String.Empty

A grayed out hint displayed in an empty header search box when the search box is activated.

#Property Paths

You can access this nested property as listed below:

Object Type Path to InHeaderSearchPrompt
GridColumn
.OptionsFilter .InHeaderSearchPrompt

#Remarks

Use the GridView.OptionsFilter.InHeaderSearchMode property to enable built-in search boxes within the View’s column headers. Users can type text in the search boxes to filter against the columns.

Data Grid - In-header search box

When a search box is activated, Data Grid displays a grayed out hint in the search box.

Column header search box - prompt

Use the InHeaderSearchPrompt property to set a custom hint.

colCountry.OptionsFilter.InHeaderSearchPrompt = "Find in column...";

Column header search box - prompt-example

See Also