Back to Devexpress

PivotGridFieldOptionsEx.AllowEdit Property

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridfieldoptionsex-345a96f3.md

latest3.4 KB
Original Source

PivotGridFieldOptionsEx.AllowEdit Property

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

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AllowEdit { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue(True)>
Public Overridable Property AllowEdit As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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 TypePath 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

EditValueChanged

FieldEdit

CustomCellEdit

CustomCellEditForEditing

ShowingEditor

ShowEditor

ValidatingEditor

Cell Editors Overview

PivotGridFieldOptionsEx Class

PivotGridFieldOptionsEx Members

DevExpress.XtraPivotGrid Namespace