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

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.v19.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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Editable property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also