Skip to main content
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.v22.1.Core.dll

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

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

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.

See Also