DataGridColumnSortOrder Enum

Lists values that specify the sort orders.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.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.

Remarks

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(ProductFlat.Category)"
                      SortOrder="DataGridColumnSortOrder.Descending" 
                      SortIndex="0">
    </DxDataGridColumn>
    <DxDataGridColumn Field="@nameof(ProductFlat.Subcategory)"
                      SortOrder="DataGridColumnSortOrder.Ascending"
                      SortIndex="1">
    </DxDataGridColumn>
    ...
</DxDataGrid>

Blazor-DataGrid-Sort

Online Demo

Data Grid - Sort Data

See Also