Back to Devexpress

DxPivotGridField.SortOrder Property

blazor-devexpress-dot-blazor-dot-dxpivotgridfield-f5c700d0.md

latest1.7 KB
Original Source

DxPivotGridField.SortOrder Property

Specifies the field’s sort order.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
PivotGridSortOrderAscending

A PivotGridSortOrder enumeration value.

|

Available values:

NameDescription
Ascending

Sorts the field in ascending order.

| | Descending |

Sorts the field in descending order.

|

Remarks

Important

The Pivot Grid was moved to maintenance support mode. No new features/capabilities will be added to this component. We recommend that you migrate to the Pivot Table component.

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>

See Also

DxPivotGridField Class

DxPivotGridField Members

DevExpress.Blazor Namespace