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.

GridView.ShowInHeaderSearchTextBox(GridColumn) Method

Activates a built-in header search box for a specific column.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v21.1.dll

Declaration

public void ShowInHeaderSearchTextBox(
    GridColumn column
)

Parameters

Name Type Description
column GridColumn

The target column.

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 ShowInHeaderSearchTextBox method activates and focuses a search box within a specified column header.

The following example sets the search text for the Country column and then activates the search box.

show search box example

colCountry.SearchText = "Germany";
gridView1.ShowInHeaderSearchTextBox(colCountry);

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

See Also