Back to Devexpress

PivotGridFieldOptions.AllowExpand Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridfieldoptions.md

latest3.6 KB
Original Source

PivotGridFieldOptions.AllowExpand Property

Gets or sets whether an end-user is allowed to expand/collapse the rows or columns which correspond to the current field.

Namespace : DevExpress.XtraPivotGrid

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

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

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean AllowExpand { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
Public Property AllowExpand As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

A DefaultBoolean enumeration value which specifies whether end-users can expand/collapse the field’s rows or columns.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowExpand
PivotGridFieldBase

.Options .AllowExpand

|

Remarks

This property is in effect for fields displayed within the Column Header Area and Row Header Area. It specifies whether expand buttons are displayed within Field Value boxes and thus it determines whether an end-user can expand/collapse specific rows/columns.

If the AllowExpand property is set to DefaultBoolean.Default the ability to expand/collapse rows/columns is determined by the control’s PivotGridOptionsCustomization.AllowExpand property.

Set the AllowExpand property to DefaultBoolean.False to prevent an end-user from expanding/collapsing the corresponding rows/columns.

If the AllowExpand property is set to DefaultBoolean.True an end-user can expand/collapse the corresponding rows/columns regardless of the PivotGridOptionsCustomization.AllowExpand property’s value.

See Also

AllowExpand

PivotGridFieldOptions Class

PivotGridFieldOptions Members

DevExpress.XtraPivotGrid Namespace