Back to Devexpress

PivotGridOptionsCustomization.AllowSort Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridoptionscustomization-12fc7ac4.md

latest2.1 KB
Original Source

PivotGridOptionsCustomization.AllowSort Property

Gets or sets whether end-users can change the sort order of fields.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.PivotGrid.v25.2.Core.dll

NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
public bool AllowSort { get; set; }
vb
<DefaultValue(True)>
Public Property AllowSort As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to allow end-users to change the sort order of fields; otherwise, false.

|

Remarks

If the AllowSort property is set to false , the sort glyphs are not displayed within field headers thus preventing end-users from changing the sort order of fields. Individual fields however have a PivotGridFieldOptions.AllowSort property which takes priority over the pivot grid’s AllowSort property.

The sort order of fields can also be changed via code using their PivotGridFieldBase.SortOrder property.

See Also

AllowSort

SortOrder

PivotGridOptionsCustomization Class

PivotGridOptionsCustomization Members

DevExpress.XtraPivotGrid Namespace