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

DataViewBase.AllowEditing Property

Gets or sets whether end-users are allowed to change cell values. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

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

Declaration

public bool AllowEditing { get; set; }

Property Value

Type Description
Boolean

true, to allow data editing; otherwise, false.

Remarks

Data editing is allowed if the view’s AllowEditing option is set to true and the DataViewBase.NavigationStyle property is set to GridViewNavigationStyle.Cell.

Individual columns provide the ColumnBase.AllowEditing property, which allows the default behavior specified by a View to be overridden for individual columns. By default, this property is set to ‘Default’. In this instance, the column’s behavior is controlled by the View. Setting this property to ‘True’ or ‘False’ overrides the default behavior. For instance, you can set the column’s ColumnBase.AllowEditing property to ‘False’, to prevent an end-user from changing its values.

Tip

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

To learn more, see Data Editing and Validation.

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