RowProperties.FilterInfo Property
Gets or sets an object specifying the filter applied to the current row.
Namespace: DevExpress.XtraVerticalGrid.Rows
Assembly: DevExpress.XtraVerticalGrid.v24.1.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid
Declaration
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