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.v24.2.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 |
---|---|
ColumnView |
|
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:
- OptionsColumn.AllowEdit and OptionsColumn.ReadOnly (accessible from GridColumn.OptionsColumn)
- ColumnView.ShowingEditor event
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.
Related GitHub Examples
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.