Skip to main content

SortProperty(String, SortingDirection) Constructor

Initializes a new instance of the SortProperty class with a property name to sort against and the sort order.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data


public SortProperty(
    string propertyName,
    SortingDirection sorting


Name Type Description
propertyName String

A String value which specifies the name of the property to sort against. This value is assigned to the SortProperty.PropertyName property.

sorting SortingDirection

A SortDirection enumeration value which specifies the property’s sort order. This value is assigned to the SortProperty.Direction property.

See Also