corelibraries-devexpress-dot-xpo-dot-sortproperty-e3ce1ff1.md
Gets or sets the expression used to sort values.
Namespace : DevExpress.Xpo
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public CriteriaOperator Property { get; set; }
Public Property [Property] As CriteriaOperator
| Type | Description |
|---|---|
| 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.
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