Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

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

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.v24.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