Skip to main content

OptionsColumn.AllowEdit Property

Specifies if users can edit column values in grid cells (inplace edit mode).

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v23.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

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

Property Value

Type Default Description
Boolean true

true to allow users to edit cell values; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowEdit
GridColumn
.OptionsColumn .AllowEdit

Remarks

The AllowEdit option is in effect if the View’s ColumnView.Editable property is set to true and the EditingMode property is set to Default or Inplace.

Users cannot edit values in merged cells (see the OptionsColumn.AllowMerge and GridOptionsView.AllowCellMerge properties). The AllowEdit property has no effect on merged 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