Tag

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.v19.2.Core.dll

Declaration

[DefaultValue(null)]
public string SortByAttribute { get; set; }
<DefaultValue(Nothing)>
Public Property SortByAttribute As String

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.

See Also