ColumnViewOptionsBehavior.AllowDeleteRows Property

Gets or sets whether the Data Navigator's Delete button is enabled for the current View.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean AllowDeleteRows { get; set; }
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Overridable Property AllowDeleteRows As DefaultBoolean

Property Value

Type Default Description
DefaultBoolean

Default

A DefaultBoolean value that specifies whether the Data Navigator's Delete button is enabled for the current View.

Property Paths

You can access this nested property as listed below:

Show 15 property paths
Object Type Path to AllowDeleteRows
AdvBandedGridView
.OptionsBehavior.AllowDeleteRows
AdvBandedGridView
.OptionsBehavior.AllowDeleteRows
BandedGridView
.OptionsBehavior.AllowDeleteRows
BandedGridView
.OptionsBehavior.AllowDeleteRows
ColumnView
.OptionsBehavior.AllowDeleteRows
CardView
.OptionsBehavior.AllowDeleteRows
CardView
.OptionsBehavior.AllowDeleteRows
GridView
.OptionsBehavior.AllowDeleteRows
GridView
.OptionsBehavior.AllowDeleteRows
LayoutView
.OptionsBehavior.AllowDeleteRows
LayoutView
.OptionsBehavior.AllowDeleteRows
TileView
.OptionsBehavior.AllowDeleteRows
TileView
.OptionsBehavior.AllowDeleteRows
WinExplorerView
.OptionsBehavior.AllowDeleteRows
WinExplorerView
.OptionsBehavior.AllowDeleteRows

Remarks

If the AllowDeleteRows property is set to Default, the navigator's Delete button is enabled if the ColumnViewOptionsBehavior.Editable option is enabled.

If the AllowDeleteRows property is set to True, but the data source doesn't support deleting rows, nothing will occur when clicking the Delete button.

The Delete button can also be disabled or hidden via the corresponding option of the GridControl.EmbeddedNavigator object (see the ControlNavigatorButtons.Remove property). However, this option will affect the appearance of the Delete button for all grid Views, while the AllowDeleteRows option is in effect only for the current View.

See Also