# Filtering in FlexChart

Expression Editor for WinForms when integrated with FlexChart enables filtering data items using expressions. See more demos, documentation, and samples here.

## Content

Expression Editor, when integrated with FlexChart, enables filtering of its data items using expressions.

To filter the data items of FlexChart based on expressions entered in Expression Editor, you can filter the data view used by FlexChart. Note that, C1Expression Editor's data source should be same as the FlexChart's data source.

The following image exhibits FlexChart control, demonstrating filtering using expression entered in Expression Editor control.

<br>
![Filtering FlexChart Expression Editor](https://cdn.mescius.io/document-site-files/images/de37eaa0-33b3-4421-b07c-d72c6ec9380d/images/eeflexchart-filter.png)

The following code demonstrates filtering the FlexChart's view through expression entered in Expression Editor for WinForms control.

1. Bind the FlexChart control with Expression Editor control, as discussed in [Integration with FlexChart](/componentone/docs/win/online-expressioneditor/Features/Integration-with-FlexChart).
2. Filter the data view used by flexChart, as shown in the following code snippet. 

    ```csharp
    _dvProducts.RowFilter = _expEditor.Expression;
    ```