Skip to main content
A newer version of this page is available. .

RowProperties.FilterInfo Property

Gets or sets an object specifying the filter applied to the current row.

Namespace: DevExpress.XtraVerticalGrid.Rows

Assembly: DevExpress.XtraVerticalGrid.v19.1.dll

Declaration

[Browsable(false)]
public VGridRowFilterInfo FilterInfo { get; set; }

Property Value

Type Description
DevExpress.XtraVerticalGrid.Rows.VGridRowFilterInfo

A DevExpress.XtraVerticalGrid.Rows.VGridRowFilterInfo object specifying the filter applied to the row owning the current properties.

Remarks

To apply a filter in code, create a new DevExpress.XtraVerticalGrid.Rows.VGridRowFilterInfo object, and assign it to the FilterInfo property. See examples below.


using DevExpress.XtraVerticalGrid.Rows;
// Create a new filter using an expression according to the criteria language syntax.
rowCity.Properties.FilterInfo = new VGridRowFilterInfo("[City] = 'London'");
// You can also get properties of the required row by a field name in the data source.
vGridControl1.GetRowPropertiesByFieldName("City").FilterInfo = new VGridRowFilterInfo("[City] = 'Paris'");
// Alternatively, you can create a CriteriaOperator object, rather than parse a criteria expression.
rowCity.Properties.FilterInfo = new VGridRowFilterInfo(new DevExpress.Data.Filtering.BinaryOperator("City", "Berlin"));
See Also