Skip to main content
Tag

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotGridField.SortByAttribute Property

Gets or sets the OLAP member property name by which the pivot grid’s data is sorted.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public string SortByAttribute { get; set; }

#Property Value

Type Description
String

A System.String object specifying the name of the OLAP member property.

#Remarks

Note

Set the PivotGridField.SortMode property to FieldSortMode.DimensionAttribute to enable sorting by OLAP member property.

To sort a pivot grid’s data by attribute, assign the property name to the SortByAttribute property of the field you want to sort. To obtain OLAP member properties, use the PivotGridField.GetOlapMemberProperties method.

When using the SortByAttribute method, the pivot grid field’s data is sorted in alphabetical order in ascending or descending order. To change the order, use the PivotGridField.SortOrder property.

See Also