Back to Devexpress

PivotGridFieldOptionsEx.ReadOnly Property

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridfieldoptionsex-00575b02.md

latest2.7 KB
Original Source

PivotGridFieldOptionsEx.ReadOnly Property

Gets or sets whether end-users can modify cell values.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool ReadOnly { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue(False)>
Public Overridable Property [ReadOnly] As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to prevent a cell value from being changed; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ReadOnly
PivotGridField

.Options .ReadOnly

|

Remarks

To enable data editing, assign the required editor to the PivotGridField.FieldEdit property, or provide an editor for cells via the PivotGridControl.CustomCellEdit and PivotGridControl.CustomCellEditForEditing events.

The ReadOnly property, if set to true , prevents cells from being modified when an editor is assigned to cells. An editor is shown in read-only mode, allowing you to move the caret, and copy text to the Clipboard. To prevent these editing actions, use the PivotGridFieldOptionsEx.AllowEdit property.

See Also

AllowEdit

FieldEdit

CustomCellEdit

CustomCellEditForEditing

PivotGridFieldOptionsEx Class

PivotGridFieldOptionsEx Members

DevExpress.XtraPivotGrid Namespace