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

ColumnBase.AllowEditing Property

Gets or sets whether users can edit column values. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.2.Core.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core

Declaration

public DefaultBoolean AllowEditing { get; set; }

Property Value

Type Description
DefaultBoolean

A value that specifies whether an end user can edit cell values.

Available values:

Name Description
True

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The value is determined by the current object’s parent object setting (e.g., a control setting).

Remarks

Users can edit data if the DataViewBase.AllowEditing property is set to true and the DataViewBase.NavigationStyle property is set to GridViewNavigationStyle.Cell.

Individual columns provide the AllowEditing property, allowing the default behavior specified by the view to be overridden. Set this property to true or false to override the default behavior. This can be useful when it is required to prevent an end user from changing values of individual columns.

If the AllowEditing property is set to Default, the ability to edit data is controlled by the DataViewBase.AllowEditing property.

Tip

Set the ColumnBase.ReadOnly to true to prevent users from editing column values, but allow users to select and copy cell text.

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