ASPxGridViewContextMenuSettings.EnableColumnMenu Property
Gets or sets whether the column context menu is enabled.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v19.1.dll
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 | Corresponds to a Boolean value of true. |
False | Corresponds to a Boolean value of false. |
Default | The value is determined by the current object’s parent object setting (e.g., a control setting). |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to EnableColumnMenu |
---|---|---|
ASP.NET Controls and MVC Extensions | ASPxGridView |
|
GridViewProperties |
|
|
GridViewSettings |
|
|
GridViewSettings<RowType> |
|
|
MVCxGridView |
|
|
MVCxGridViewProperties |
|
|
ASP.NET Bootstrap Controls | BootstrapGridView |
|
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.