Skip to main content
All docs
V24.1

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

NuGet Package: DevExpress.Charts

Declaration

[Browsable(false)]
[NonTestableProperty]
[TypeConverter(typeof(FilterStringTypeConverter))]
[XtraChartsLocalizableCategory(XtraChartsCategory.Data)]
[XtraSerializableProperty(XtraSerializationVisibility.Visible)]
public string FilterString { get; set; }

Property Value

Type Description
String

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