Skip to main content

DxPivotGridField.SortOrder Property

Specifies the field’s sort order.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Default Description
PivotGridSortOrder Ascending

A PivotGridSortOrder enumeration value.

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