Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxPivotGridField.SortOrder Property

Specifies the field’s sort order.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[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.

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

PivotGrid Sort Data

See Also