PivotGridField.SortByConditions Property
In This Article
Contains conditions that identify the column or row whose values are sorted.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v14.2.dll
#Declaration
[XtraSerializableProperty(XtraSerializationVisibility.Collection, true, false, true)]
[XtraSerializablePropertyId(2)]
public SortByConditionCollection SortByConditions { get; }
#Property Value
Type | Description |
---|---|
Sort |
The collection whose items identify the column or row of values to be sorted. |
#Remarks
To sort data by summaries, do the following:
- Use the PivotGridField.SortByField or PivotGridField.SortByFieldName property to specify a field (typically a data field) against which summary values should be calculated. If the PivotGridField.SortByField property is used, the summary type is specified by this field's PivotGridField.SummaryType property. If the PivotGridField.SortByFieldName property is used, the required summary type should be specified using the PivotGridField.SortBySummaryType property.
- To sort data according to an individual column or row, you need to specify the column or row via the PivotGridField.SortByConditions collection. Do this by adding items to this collection, each of which identifies a specific field and its value. If the PivotGridField.SortByConditions collection is empty, the current field values are sorted by grand total values.
To learn more, see Sorting by Summary.
See Also