BeforeExportDocumentEventArgs.HideItem(String) Method

Hides the dashboard item with the specified name in the exported dashboard.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v18.2.Core.dll


public void HideItem(
    string itemComponentName
Public Sub HideItem(
    itemComponentName As String


Type Name Description
String itemComponentName

A String that specifies the component name of the dashboard item to hide.


The method in the code snippet below is the Dashboard control's BeforeExportDocument event handler demonstrating how to hide dashboard items, groups and tab pages in the printed or exported document.

This method can be the used to handle the following events:

using DevExpress.DashboardCommon;
// ...
    private void dashboardControl_BeforeExportDocument(object sender, DevExpress.DashboardCommon.BeforeExportDocumentEventArgs e) {
        // Hide a dashboard item with the specified name from the printed/exported document.

        // Hide all filter elements from the printed/exported document.
        e.HideItem((DashboardItem item) => item is FilterElementDashboardItem);
        // Hide all groups.
        e.HideItem((DashboardItem item) => item is DashboardItemGroup);
See Also