Back to Devexpress

SortProperty Class

corelibraries-devexpress-dot-xpo-aa9b040f.md

latest1.8 KB
Original Source

SortProperty Class

An element in the SortingCollection.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public sealed class SortProperty
vb
Public NotInheritable Class SortProperty

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.

csharp
DevExpress.Xpo.SortingCollection sortCollection = new DevExpress.Xpo.SortingCollection();
sortCollection.Add(new SortProperty("Name", DevExpress.Xpo.DB.SortingDirection.Ascending));
xpCollection1.Sorting = sortCollection;
vb
Dim sortCollection As DevExpress.Xpo.SortingCollection = New DevExpress.Xpo.SortingCollection()
sortCollection.Add(New SortProperty("Name", DevExpress.Xpo.DB.SortingDirection.Ascending))
XpCollection1.Sorting = sortCollection

Inheritance

Object SortProperty

See Also

SortProperty Members

Sorting

DevExpress.Xpo Namespace