Skip to main content
A newer version of this page is available. .
All docs
V21.2

DataSourceAdapterBase.FilterString Property

Gets or sets the filter string that is applied to the series to filter displayed data.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v21.2.dll

NuGet Package: DevExpress.Charts

Declaration

[Browsable(false)]
[DefaultValue("")]
[XtraChartsLocalizableCategory(XtraChartsCategory.Data)]
public string FilterString { get; set; }

Property Value

Type Default Description
String String.Empty

The filter string.

Remarks

Use the FilterString property to create a filter expression that consists of multiple conditions applied to multiple data columns, and apply it to the series data. When you set the FilterString property to a new value, applied filters are reset.

Note that the FilterString and DataSourceAdapterBase.FilterCriteria properties are dependent. If you update one of them, the other changes as well.

Use Criteria Language Syntax to create a filter expression. Then, assign the expression to the FilterString property:

using DevExpress.Data.Filtering;
//...
  DataSourceAdapter dataAdapter = new DataSourceAdapter();
  //...
  // Specify other data adapter settings (data source and data members) here.
  //...
  dataAdapter.FilterString = "CategoryID = 1 Or CategoryID = 3 Or CategoryID = 7";

  series.DataAdapter = dataAdapter;
See Also