Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

VGridControl.ActiveFilterString Property

Gets or sets the overall filter expression.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

#Declaration

[Browsable(false)]
[DefaultValue("")]
[XtraSerializableProperty(1000)]
[XtraSerializablePropertyId(3)]
public string ActiveFilterString { get; set; }

#Property Value

Type Default Description
String String.Empty

A string that specifies the overall filter expression applied to the control.

#Remarks

The ActiveFilterString property allows you to specify a filter condition in code, which will be immediately applied. See an example below.

vGridControl1.ActiveFilterString = "[Country] = 'France' And [City] = 'Paris' Or [Country] = 'Italy' And [City] = 'Bergamo'";

See Criteria Language Syntax to learn how to compose filter expressions.

See Also