Back to Devexpress

SortProperty.Property Property

corelibraries-devexpress-dot-xpo-dot-sortproperty-e3ce1ff1.md

latest2.1 KB
Original Source

SortProperty.Property Property

Gets or sets the expression used to sort values.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public CriteriaOperator Property { get; set; }
vb
Public Property [Property] As CriteriaOperator

Property Value

TypeDescription
CriteriaOperator

A CriteriaOperator object that represents the expression used to sort values.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Property property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XAF_Non-Persistent-Objects-Filtering-Demo/CS/EFCore/NonPersistentFilteringEF.Module/BusinessObjects/Contact.cs#L96

csharp
string sort = null;
if(sorting != null && sorting.Count == 1 && sorting[0].Property is OperandProperty) {
    sort = string.Format("{0} {1}", sorting[0].PropertyName, sorting[0].Direction == DevExpress.Xpo.DB.SortingDirection.Ascending ? "ASC" : "DESC");

See Also

SortProperty Class

SortProperty Members

DevExpress.Xpo Namespace