Tag

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

Declaration

[Browsable(false)]
public ColumnSortOrder SortOrder { get; set; }
<Browsable(False)>
Public Property SortOrder As ColumnSortOrder

Property Value

Type Description
ColumnSortOrder

The column's sort order.

Remarks

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