Skip to main content

DataGridColumnSortOrder Enum

Lists values that specify the sort orders.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.2.dll

Declaration

public enum DataGridColumnSortOrder

Members

Name Description
None

No sorting is applied to a column.

Ascending

Sorts the column in ascending order.

Descending

Sorts the columns in descending order.

Related API Members

The following properties accept/return DataGridColumnSortOrder values:

Remarks

Important

The Data Grid was moved to maintenance support mode. No new features/capabilities will be added to this component. We recommend that you migrate to the Grid component.

The DataGridColumnSortOrder enumeration values apply data sorting in a particular order or remove sort filters from the column.

The SortOrder property specifies the algorithm used to sort the column’s data.

<DxDataGrid Data="@DataSource">
    <DxDataGridColumn Field="@nameof(Customer.City)"
                      SortOrder="DataGridColumnSortOrder.Ascending" 
                      SortIndex="0">
    </DxDataGridColumn>
    <DxDataGridColumn Field="@nameof(Customer.Country)"
                      SortOrder="DataGridColumnSortOrder.Ascending"
                      SortIndex="1">
    </DxDataGridColumn>
    @* ... *@
</DxDataGrid>

DataGrid Sort

Online Demo

Data Grid - Sort Data

See Also