SortProperty Class
In This Article
An element in the SortingCollection.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Data.v24.1.dll
NuGet Package: DevExpress.Data
#Declaration
[TypeConverter(typeof(SortProperty.SortPropertyConverter))]
public sealed class SortProperty
#Related API Members
The following members return SortProperty objects:
#Remarks
The SortProperty.PropertyName property specifies the name of a property which identifies the sorted column. The sort order is specified by the SortProperty.Direction property.
DevExpress.Xpo.SortingCollection sortCollection = new DevExpress.Xpo.SortingCollection();
sortCollection.Add(new SortProperty("Name", DevExpress.Xpo.DB.SortingDirection.Ascending));
xpCollection1.Sorting = sortCollection;
See Also