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.v22.2.dll
NuGet Package: DevExpress.Win.Grid
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 |
|
BandedGridView |
|
ColumnView |
|
CardView |
|
GridView |
|
LayoutView |
|
TileView |
|
WinExplorerView |
|
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.