DataGridColumnSortOrder Enum

Lists values that specify the sort orders.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public enum DataGridColumnSortOrder

Members

Name Description
Ascending

Sorts the column in ascending order.

Descending

Sorts the columns in descending order.

None

No sorting is applied to a column.

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="@forecasts" >
    ...
    <DxDataGridColumn Field="@nameof(WeatherForecast.TemperatureC)" Caption="Temp. (C)" SortOrder="@DataGridColumnSortOrder.Ascending">
    </DxDataGridColumn>
</DxDataGrid>

Online Demo

Data Grid - Sort Data

See Also