private void DashboardViewer1_CustomizeDashboardItemCaption(object sender, CustomizeDashboardItemCaptionEventArgs e)
        {
            DashboardViewer viewer = (DashboardViewer)sender;

            if (e.DashboardItemName == "pieDashboardItem1")
            {
                DashboardToolbarItem infoButton = new DashboardToolbarItem();
                MultiDimensionalData mData      = viewer.GetItemData(e.DashboardItemName);
                var orderCount = mData.GetValue(mData.GetMeasures().Where(m => m.DataMember == "OrderID").First()).Value ?? 0;
                e.FilterText += string.Format("{0:N0} distinct orders are displayed", orderCount);
            }
        }
        public static DataTable CreateDataTableByGridDashboardItem(GridDashboardItem gridItem, DashboardViewer viewer)
        {
            DataTable dataTable = null;

            if (gridItem != null)
            {
                MultiDimensionalData mData = viewer.GetItemData(gridItem.ComponentName);
                dataTable = new DataTable();

                CreateColumnsByGridDashboardItem(gridItem, dataTable);

                AddRowsByGridDashboardItem(gridItem, mData, dataTable);
            }
            return(dataTable);
        }