Skip to main content
A newer version of this page is available. .

ColumnViewOptionsBehavior.ReadOnly Property

Gets or sets whether the current View is read-only.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

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

Property Value

Type Default Description
Boolean **false**

true if the current View is read-only; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to ReadOnly
AdvBandedGridView
.OptionsBehavior.ReadOnly
BandedGridView
.OptionsBehavior.ReadOnly
ColumnView
.OptionsBehavior.ReadOnly
CardView
.OptionsBehavior.ReadOnly
GridView
.OptionsBehavior.ReadOnly
LayoutView
.OptionsBehavior.ReadOnly
TileView
.OptionsBehavior.ReadOnly
WinExplorerView
.OptionsBehavior.ReadOnly

Remarks

In read-only mode, cell editors can be invoked. However, end-users can only select and copy an editor’s content. The ReadOnly property enables the read-only status for the current View. To set the read-only status for individual columns, use the column’s OptionsColumn.ReadOnly property.

To prevent editors from being activated, disable the ColumnViewOptionsBehavior.Editable property.

See Also