.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

XafDataView(IObjectSpace, Type, IList<DataViewExpression>, CriteriaOperator, IList<SortProperty>) Constructor

Initializes a new instance of the XafDataView class with the specified settings.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v20.1.dll


public XafDataView(
    IObjectSpace objectSpace,
    Type objectType,
    IList<DataViewExpression> expressions,
    CriteriaOperator criteria,
    IList<SortProperty> sorting
Public Sub New(
    objectSpace As IObjectSpace,
    objectType As Type,
    expressions As IList(Of DataViewExpression),
    criteria As CriteriaOperator,
    sorting As IList(Of SortProperty)


Name Type Description
objectSpace IObjectSpace

An IObjectSpace object used to access data.

objectType Type

The Type of requested business objects.

expressions IList<DataViewExpression>

An IList<DataViewExpression> list that specifies data view column names and expressions used to compute column values. These column names can be used for sorting the data view via the sorting parameters.

criteria CriteriaOperator

A CriteriaOperator object that specifies criteria associated with the data view.

sorting IList<SortProperty>

An IList<SortProperty> collection whose elements identify the sorted columns within the data view.


If the passed property name conflicts with a function name, wrap the name in square brackets (e.g. "Oid;[Count];Price"). If you subsequently need to access such a property via a data record, you do not need to use brackets.

See Also