ColumnBase.SortOrder Property

Gets or sets the column's sort order. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.Core.dll


public ColumnSortOrder SortOrder { get; set; }
Public Property SortOrder As ColumnSortOrder

Property Value

Type Description

The column's sort order.


To sort data against a column, specify its SortOrder property:

<dxg:GridColumn FieldName="City" SortOrder="Descending"/>
<dxg:GridColumn FieldName="Visits" SortOrder="Ascending"/>
<dxg:GridColumn FieldName="Birthday" SortOrder="None"/>

The SortOrder property does not clear the sorting applied. This property adds a new sorting condition to previous ones.

Refer to the Sorting in Code topic for more information.

See Also