public void Export()
        {
            var exporter = new GridViewExportCsv <Customer>(new GridViewExportCsvSettings <Customer> {
                Separator = ";"
            });
            var gridView = Context.View.FindControlByClientId <DotVVM.BusinessPack.Controls.GridView>("data", true);

            using (var file = exporter.Export(gridView, Customers))
            {
                Context.ReturnFile(file, "Report.csv", "text/csv");
                //Context.ReturnFile(file, "export.pdf", "application/pdf");
            }
        }
        public void ExportExcel()
        {
            var exporter = new GridViewExportCsv <ElementoReportViewModel>(new GridViewExportCsvSettings <ElementoReportViewModel> {
                Separator = ";"
            });
            var gridView = Context.View.FindControlByClientId <DotVVM.BusinessPack.Controls.GridView>("data", true);

            using (var file = exporter.Export(gridView, this.Elementos))
            {
                Context.ReturnFile(file, "ReportePlano.csv", "text/csv");
                // Context.ReturnFile(file, "export.pdf", "application/pdf");
            }
        }
        public void ExportExcel()
        {
            var exporter = new GridViewExportCsv <ElementoReportViewModel>(new GridViewExportCsvSettings <ElementoReportViewModel> {
                Separator = ";"
            });
            var gridView = Context.View.FindControlByClientId <DotVVM.BusinessPack.Controls.GridView>("data", true);

            using (var file = exporter.Export(gridView, this.Elementos))
            {
                var usuername = string.Format("{0} {1}", SelectedUsuario.Nombre, SelectedUsuario.Apellido);
                var usuario   = RemoveDiacritics(usuername);
                Context.ReturnFile(file, string.Format("reporte_general_{0}.csv", usuario), "text/csv");
                // Context.ReturnFile(file, "export.pdf", "application/pdf");
            }
        }