Back to Devexpress

VGridControl.ActiveFilterString Property

windowsforms-devexpress-dot-xtraverticalgrid-dot-vgridcontrol-91b7e4a7.md

latest2.4 KB
Original Source

VGridControl.ActiveFilterString Property

Gets or sets the overall filter expression.

Namespace : DevExpress.XtraVerticalGrid

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

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

Declaration

csharp
[Browsable(false)]
[DefaultValue("")]
[XtraSerializableProperty(1000)]
[XtraSerializablePropertyId(3)]
public string ActiveFilterString { get; set; }
vb
<Browsable(False)>
<DefaultValue("")>
<XtraSerializableProperty(1000)>
<XtraSerializablePropertyId(3)>
Public Property ActiveFilterString As String

Property Value

TypeDefaultDescription
StringString.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.

csharp
vGridControl1.ActiveFilterString = "[Country] = 'France' And [City] = 'Paris' Or [Country] = 'Italy' And [City] = 'Bergamo'";
vb
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

FilterString

Criteria Language Syntax

VGridControl Class

VGridControl Members

DevExpress.XtraVerticalGrid Namespace