GridViewProperties.SettingsContextMenu Property
Provides access to the GridView’s context menu settings.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Description |
---|---|
ASPxGridViewContextMenuSettings | Provides the Grid View’s context menu settings. |
Remarks
Web Forms:
<dx:ASPxGridView runat="server" ID="Grid" Width="100%" ...>
<Columns>
...
</Columns>
<SettingsContextMenu Enabled="true">
<RowMenuItemVisibility>
<ExportMenu Visible="true" />
</RowMenuItemVisibility>
</SettingsContextMenu>
...
</dx:ASPxGridView>
MVC:
@Html.DevExpress().GridView(settings => {
settings.Name = "gridView";
settings.SettingsContextMenu.Enabled = true;
settings.SettingsContextMenu.RowMenuItemVisibility.ExportMenu.Visible = true;
}).Bind(Model).GetHtml()
Online Demo
See Also