Skip to main content

PivotGridFieldOptionsEx.AllowEdit Property

Gets or sets whether data editing is allowed for the current field.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v24.1.dll

NuGet Package: DevExpress.Win.PivotGrid

Declaration

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

Property Value

Type Default Description
Boolean true

true to allow users to edit cell values that correspond to the current data field; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowEdit
PivotGridField
.Options .AllowEdit

Remarks

To enable data editing, assign the required editor to cells via a data field’s PivotGridField.FieldEdit property and/or the PivotGridControl.CustomCellEdit and PivotGridControl.CustomCellEditForEditing events.

The AllowEdit property, if set to false, prevents a cell editor from being invoked. In this mode, the cell editor only controls the representation of cell values in display mode. To prevent cells from being modified, you can open cell editors in read-only mode. See PivotGridFieldOptionsEx.ReadOnly to learn more.

To temporarily prohibit data editing for cells corresponding to all data fields, use the PivotGridOptionsCustomizationEx.AllowEdit property.

See Also