PivotGridFieldOptions.AllowSort Property

Gets or sets whether an end-user can modify the field's current sort order.

Namespace: DevExpress.XtraPivotGrid

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


public DefaultBoolean AllowSort { get; set; }
Public Property AllowSort As DefaultBoolean

Property Value

Type Default Description


A DefaultBoolean enumeration value specifying whether end-users can modify the field's sort order.


Data within the PivotGrid 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 PivotGridFieldBase.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.

If the AllowSort property is set to DefaultBoolean.Default the ability to modify the field's sort order is determined by the control's PivotGridOptionsCustomization.AllowSort property.

Set the AllowSort property to DefaultBoolean.False to prevent an end-user from modifying the field's sort order.

If the AllowSort property is set to DefaultBoolean.True an end-user can toggle the field's sort order regardless of the PivotGridOptionsCustomization.AllowSort property's value.

See Also