Back to Devexpress

ColumnViewOptionsBehavior.AllowDeleteRows Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-columnviewoptionsbehavior-59809403.md

latest3.5 KB
Original Source

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.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
DefaultBooleanDefault

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

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowDeleteRows
ColumnView

.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

AllowAddRows

Data Navigator

ColumnViewOptionsBehavior Class

ColumnViewOptionsBehavior Members

DevExpress.XtraGrid.Views.Base Namespace