I created columns in code, 3 to Row Area, rest in column area, and all those in row area are grouped by name, and I don’t want any of grouping/sorting, because I sorted and grouped it as I want in stored procedure.
Any idea how to disable automatic grouping/sorting?
Thanks
Ref: Can I disable sort?
In this case, it is necessary to sort data manually by handling the ASPxPivotGrid.CustomFieldSort event. Do your calculation of sorting and grouping at this event.Below, I have posted a code snippet, demonstrating how to disable sorting:
Reference:
Disable sorting feature by row/column
How to disable sorting and filtering features
SortOrder changed event handler
Regarding Grid Default Alphabetic Sorting
PivotGridCommands.ClearSorting Property
check the AspxPivotGrid Sorting section for help in your calculations.
ASPxPivotGrid’s
PivotGridOptionsCustomization.AllowSortoption.The order in which field values are sorted is specified by a field’s
PivotGridFieldBase.SortOrderproperty.