Skip to main content
A newer version of this page is available. .
Tag

PivotGridField.AllowSort Property

Gets or sets whether an end-user can modify the field’s current sort order. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.PivotGrid, DevExpress.Wpf.PivotGrid

Declaration

public bool? AllowSort { get; set; }

Property Value

Type Description
Nullable<Boolean>

true if an end-user can modify the field’s current sort order; otherwise, false.

Remarks

Data within the DXPivotGrid control is always sorted against the fields displayed within the Column Header Area and Row Header Area. An end-user can click a field’s header to toggle the sort order.

Use the PivotGridField.SortOrder property to specify the field’s sort order. The AllowSort property lets you prevent end-users from modifying the field’s current sort order. In this case, a click on the field’s header has no effect.

See Also