Back to Devexpress

PivotGridField.AllowSort Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridfield-e13c6835.md

latest1.9 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public bool? AllowSort { get; set; }
vb
Public Property AllowSort As Boolean?

Property Value

TypeDescription
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

SortOrder

PivotGridField Class

PivotGridField Members

DevExpress.Xpf.PivotGrid Namespace