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. |
#Remarks
Note
Set the Pivot
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.