ColumnView.ApplyFindFilter(String) Method
In This Article
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
#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