Blazor Pivot Table Example - Default Sorting
Grand Total |
|---|
Grand Total | No records to display |
Properties
Fields:
|
|
Order:
|
|
This sample demonstrates ordering row and column headers in ascending or descending order.
In this sample, select any field from the Fields dropdown and change its sort order to display headers in ascending or descending order. Sorting can be applied through code-behind or UI.
To implement sorting in code-behind:
- Set EnableSorting to true in PivotViewDataSourceSettings
- Use PivotViewSortSettings with Name and Order (Ascending/Descending) properties
For UI-based sorting, enable grouping bar or field list to perform sorting operations.
For comprehensive sorting documentation, refer to the documentation.