Skip to main content
A newer version of this page is available. .

DxPivotGridField.SortOrder Property

Specifies the field’s sort order.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(PivotGridSortOrder.Ascending)]
[Parameter]
public PivotGridSortOrder SortOrder { get; set; }

Property Value

Type Default Description
PivotGridSortOrder **Ascending**

A PivotGridSortOrder value that specifies the field’s sort order.

Available values:

Name Description
Ascending

Sorts the field in ascending order.

Descending

Sorts the field in descending order.

Remarks

DxPivotGrid data is always sorted by row and column fields. A field header displays a sort order (ascending or descending) for the corresponding field’s values. To change the sort order, use the SortOrder property in code or click the field header at runtime.

<DxPivotGridField Field="@nameof(SaleInfo.Region)" SortOrder="SortOrder.Ascending"></DxPivotGridField>

PivotGrid Sort Data

See Also