Skip to main content

ColumnView.ApplyFindFilter(String) Method

Sets the Find Panel‘s query to the specified string and applies the search/filter.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v25.2.dll

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

Declaration

public void ApplyFindFilter(
    string filter
)

Parameters

Name Type Description
filter String

The search/filter query. An empty string discards the search/filter query.

Remarks

The following code snippet sets the ‘chai’ query on form load to highlight matching results in the gridView:

private void Form1_Load(object sender, EventArgs e) {
    this.productsTableAdapter.Fill(this.nwindDataSet.Products);

    gridView.OptionsFind.AlwaysVisible = true;
    gridView.OptionsFind.Behavior = DevExpress.XtraEditors.FindPanelBehavior.Search;
    gridView.ApplyFindFilter("chai");
}

The ClearFindFilter() method discards a search/filter query.

See Also