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

RowProperties.FilterInfo Property

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

Namespace: DevExpress.XtraVerticalGrid.Rows

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

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

#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