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

ASPxGridViewContextMenuSettings.EnableColumnMenu Property

Gets or sets whether the column context menu is enabled.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean EnableColumnMenu { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

true, to enable the column context menu; otherwise, false.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to EnableColumnMenu
ASP.NET MVC Extensions GridViewSettings
.SettingsContextMenu .EnableColumnMenu
MVCxGridViewProperties
.SettingsContextMenu .EnableColumnMenu
ASP.NET Web Forms Controls ASPxGridView
.SettingsContextMenu .EnableColumnMenu
GridViewProperties
.SettingsContextMenu .EnableColumnMenu

Remarks

The ASPxGridView provides different context menu types for the following elements: row, column, footer, group footer, and group panel. Use the EnableColumnMenu property to control the visibility of a column context menu. If the property is set to Default, its value is equal to the ASPxGridViewContextMenuSettings.Enabled property value.

You can control the visibility of default context menu items using the settings provided by the ASPxGridViewContextMenuSettings.ColumnMenuItemVisibility property.

See Also