Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotGridOptionsCustomizationEx.AllowEdit Property

Gets or sets whether data editing is enabled.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v24.2.dll

NuGet Package: DevExpress.Win.PivotGrid

#Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public bool AllowEdit { get; set; }

#Property Value

Type Default Description
Boolean true

true if data editing is enabled; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to AllowEdit
PivotGridControl
.OptionsCustomization .AllowEdit

#Remarks

To allow an end-user to edit cells corresponding to a specific data field, you need to assign an in-place editor to cells via the PivotGridField.FieldEdit property or PivotGridControl.CustomCellEdit/PivotGridControl.CustomCellEditForEditing event(s).

By default, the AllowEdit option is set to true, so data editing is not disabled. You can set this option to false, to temporarily prevent data editing in all cells. In addition, you can prevent data editing for cells corresponding to a specific data field via the field’s PivotGridFieldOptionsEx.AllowEdit option.

See Also