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

OptionsColumn.AllowEdit Property

Gets or sets whether users can edit cell values under this column.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v20.2.dll

NuGet Package: DevExpress.Win.Grid

Declaration

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

Property Value

Type Default Description
Boolean **true**

true if end-users are allowed to invoke cell editors; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowEdit
GridColumn
.OptionsColumn .AllowEdit
LayoutViewColumn
.OptionsColumn .AllowEdit
BandedGridColumn
.OptionsColumn .AllowEdit

Remarks

This option is in effect if the View’s ColumnView.Editable property is set to true.

Merged cells (see the OptionsColumn.AllowMerge and GridOptionsView.AllowCellMerge properties) are always non-editabe, the AllowEdit property has no effect on such cells.

Example

colCity.OptionsColumn.AllowEdit = false;

The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowEdit 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