PivotGridField.SortMode Property
Gets or sets how the field's data is sorted, when sorting is applied to it. This is a dependency property.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v14.2.dll
#Declaration
[XtraSerializableProperty]
[XtraSerializablePropertyId(2)]
public FieldSortMode SortMode { get; set; }
#Property Value
Type | Description |
---|---|
Field |
A Field |
#Remarks
The SortMode property determines the algorithm used to sort the field's data (by display text, edit value or using a custom sorting algorithm).
To provide custom sorting, set the SortMode property to FieldSortMode.Custom and handle the PivotGridControl.CustomFieldSort event.
To apply sorting to a field, set the field's PivotGridField.SortOrder property to FieldSortOrder.Ascending or FieldSortOrder.Descending. This will arrange the field's values in ascending or descending order, using the algorithm that is specified by the SortMode property.