Back to Devexpress

Step 4: Enable Search Panel

wpf-120275-controls-and-libraries-data-grid-bind-to-data-bind-to-any-data-source-with-virtual-sources-bind-to-custom-service-with-restrictions-step-4-enable-search-panel.md

latest1.9 KB
Original Source

Step 4: Enable Search Panel

  • Mar 30, 2023
  • 2 minutes to read

You should enable data operations after binding the GridControl to a virtual source.

In this step, we describe how to enable the search panel.

Note

The Issues Service is used as an example of a data source in this tutorial.

Enable Search Panel

  1. Display the search panel by setting the DataViewBase.ShowSearchPanelMode property to Always :

  2. Convert a text entered in the search panel to a CriteriaOperator to allow the virtual source to apply a filter:

  3. (Skip this step if you set the ApplyToColumnsFilter property to false.) You can now use the drop-down filter and search panel to filter by tags. If you use the drop-down filter to apply a filter, the search panel’s text is not updated. You need to make the search panel detect changes in the drop-down filter:

Continue or Review