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.v20.1.Core.dll

Declaration

public bool AllowEditing { get; set; }
Public Property AllowEditing As Boolean

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.

See Also