All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

GridColumn.SearchText Property

Gets or sets the text of the column’s built-in header search box. This property is supported in Grid Views and Banded Grid Views.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v21.1.dll

Declaration

[DefaultValue("")]
[DXCategory("Data")]
[XtraSerializableProperty]
public string SearchText { get; set; }

Property Value

Type Default Description
String

String.Empty

The text of the built-in header search box.

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

The SearchText property specifies the text of the column’s header search box.

colProductName.SearchText = "tofu";

Set the SearchText property to an empty string, or call the GridView.ClearInHeaderSearchText method to clear the search text.

See the following topic for more information: GridView.OptionsFilter.InHeaderSearchMode.

See Also