Skip to main content
Tab

GridViewExportMenuItemVisibility.Visible Property

Specifies the visibility of the Export context menu item.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(false)]
public bool Visible { get; set; }

Property Value

Type Default Description
Boolean false

true if the item is visible; otherwise false.

Remarks

Set the Visible property to true to enable the Export context menu item.

<dx:ASPxGridView ID="Grid" runat="server" KeyFieldName="ProductID" DataSourceID="ProductsDataSource">
    <SettingsExport EnableClientSideExportAPI="true"/>
    <SettingsContextMenu Enabled="true">
        <RowMenuItemVisibility ExportMenu-Visible="true" />
    </SettingsContextMenu>
    ...

ASPxGridView Export - Context Menu

Run Demo: Grid - Context Menu

You can control the visibility of a particular export command in the Export submenu. Set a command’s visibility property to false to hide the corresponding item in the menu.

Item Visibility Property
Export to PDF ExportToPdf
Export to RTF ExportToRtf
Export to DOCX ExportToDocx
Export to CSV ExportToCsv
Export to XLS ExportToXls
Export to XLSX ExportToXlsx

ASPxGridView-Export-ContextMenu

<dx:ASPxGridView ID="Grid" runat="server" KeyFieldName="ProductID" DataSourceID="ProductsDataSource">
    <SettingsExport EnableClientSideExportAPI="true"/>
    <SettingsContextMenu Enabled="true">
        <RowMenuItemVisibility>
            <ExportMenu Visible="true" ExportToCsv="false" ExportToRtf="false" ExportToDocx="false"/>
        </RowMenuItemVisibility>
    </SettingsContextMenu>
    ...
See Also