ColumnViewOptionsBehavior.Editable Property

Gets or sets whether end-users are allowed to edit data (using in-place cell editors and Edit Forms).

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v21.1.dll

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool Editable { get; set; }

Property Value

Type Default Description
Boolean

true

true if end-users are allowed to edit data; otherwise, false.

Property Paths

You can access this nested property as listed below:

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

Remarks

Set the Editable property to false to disable data editing using in-place cell editors and Edit Forms.

If the Editable option is true, and regular data editing mode (in grid cells) is active (see GridOptionsBehavior.EditingMode), you can use the following members to disable cell editors in certain columns:

If data editing via an Edit Form is enabled, the OptionsColumn.AllowEdit property and ColumnView.ShowingEditor event do not let you disable column editors. To accomplish this task, use the column’s OptionsColumn.ReadOnly property. To forbid display of an Edit Form according to your logic, you can handle the GridView.EditFormShowing event.

See Also