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

PivotGridFieldOptionsEx.ReadOnly Property

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

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v24.2.dll

NuGet Package: DevExpress.Win.PivotGrid

#Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool ReadOnly { get; set; }

#Property Value

Type Default Description
Boolean false

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

#Property Paths

You can access this nested property as listed below:

Object Type Path 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