PivotGridFieldBase.SortByAttribute Property
Gets or sets the OLAP member property name by which the pivot grid’s data is sorted.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.PivotGrid.v24.2.Core.dll
NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.Win.Navigation
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | null | A System.String object specifying the name of the OLAP member property. |
Remarks
Note
Set the PivotGridFieldBase.SortMode property to PivotSortMode.DimensionAttribute to enable sorting by the 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 the OLAP member properties, use the PivotGridFieldBase.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 PivotGridFieldBase.SortOrder property.