PivotSortMode Enum
Lists the values that specify how a field’s data should be sorted.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.PivotGrid.v17.2.Core.dll
Declaration
[ResourceFinder(typeof(ResFinder), "PropertyNamesRes")]
[TypeConverter(typeof(EnumTypeConverter))]
public enum PivotSortMode
Members
Name | Description |
---|---|
Default | Sorts the field’s data by the field’s values (these are synchronized with the values from the bound data source). |
Value | Sorts the field’s data by the field’s values (these are synchronized with the values from the bound data source). |
DisplayText | Sorts the field’s data by the field’s display text (the strings displayed within the field values). In OLAP mode, the data is sorted against the text generated on the server. The field will not be sorted against the custom text generated on the client side (for instance, if you modify the text via the PivotGridControl.FieldValueDisplayText event). |
Custom | Enables custom sorting of the field’s data using the PivotGridControl.CustomFieldSort event. To sort data in OLAP mode, use the PivotGridControl.CustomServerModeSort event. |
Key | Sorts the field’s data by key attributes (in OLAP mode). |
ID | Sorts by a level member’s ID (in OLAP mode). |
None | Data is not sorted, and it’s displayed in the order specified by the data source. This option is in effect only in OLAP mode. |
DimensionAttribute | Sorts the field’s data by the OLAP member property (in OLAP mode). |
Related API Members
The following properties accept/return PivotSortMode values:
Remarks
Values listed by this enumeration are used to set the field’s PivotGridFieldBase.SortMode property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the PivotSortMode enum.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.