windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridoptionscustomizationex-2f16a8c4.md
Gets or sets whether data editing is enabled.
Namespace : DevExpress.XtraPivotGrid
Assembly : DevExpress.XtraPivotGrid.v25.2.dll
NuGet Package : DevExpress.Win.PivotGrid
[DefaultValue(true)]
[XtraSerializableProperty]
public bool AllowEdit { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Property AllowEdit As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true if data editing is enabled; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to AllowEdit |
|---|---|
| PivotGridControl |
.OptionsCustomization .AllowEdit
|
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
PivotGridOptionsCustomizationEx Class