Пример #1
0
        private void btnExportEstrutura_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var reports = gridView1.GetSelectedItens <DashboardImage>();

            if (reports.Count > 1)
            {
                ReportUtil.ExportDashboardList(reports);
            }
            else
            {
                if (gridView1.IsSelectOneRowWarning())
                {
                    var dash = gridView1.GetFocusedRow <DashboardImage>();
                    ReportUtil.ExportDashaboard(dash);
                }
            }
        }