blazor-devexpress-dot-blazor-dot-dxpivotgridfield-f5c700d0.md
Specifies the field’s sort order.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(PivotGridSortOrder.Ascending)]
[Parameter]
public PivotGridSortOrder SortOrder { get; set; }
| 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.
|
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.
<DxPivotGridField Field="@nameof(SaleInfo.Region)" SortOrder="SortOrder.Ascending"></DxPivotGridField>
See Also