ColumnViewOptionsBehavior.AllowAddRows Property

Gets or sets whether the Data Navigator's Append 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 AllowAddRows { get; set; }
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Overridable Property AllowAddRows As DefaultBoolean

Property Value

Type Default Description
DefaultBoolean

Default

A DefaultBoolean value that specifies whether the Data Navigator's Append 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 AllowAddRows
AdvBandedGridView
.OptionsBehavior.AllowAddRows
AdvBandedGridView
.OptionsBehavior.AllowAddRows
BandedGridView
.OptionsBehavior.AllowAddRows
BandedGridView
.OptionsBehavior.AllowAddRows
ColumnView
.OptionsBehavior.AllowAddRows
CardView
.OptionsBehavior.AllowAddRows
CardView
.OptionsBehavior.AllowAddRows
GridView
.OptionsBehavior.AllowAddRows
GridView
.OptionsBehavior.AllowAddRows
LayoutView
.OptionsBehavior.AllowAddRows
LayoutView
.OptionsBehavior.AllowAddRows
TileView
.OptionsBehavior.AllowAddRows
TileView
.OptionsBehavior.AllowAddRows
WinExplorerView
.OptionsBehavior.AllowAddRows
WinExplorerView
.OptionsBehavior.AllowAddRows

Remarks

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

If the AllowAddRows property is set to True, but the data source doesn't support adding rows, nothing will occur when clicking the Append button.

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

See Also