protected void Grid_ContextMenuItemClick(object sender, ASPxGridViewContextMenuItemClickEventArgs e) { try { switch (e.Item.Name) { case "ExportToPDF": ASPxGridViewExporter1.WritePdfToResponse(); break; case "ExportToXLS": ASPxGridViewExporter1.WriteXlsToResponse(); break; case "ExportToWORD": ASPxGridViewExporter1.WriteRtfToResponse(); break; case "ExportToCSV": ASPxGridViewExporter1.WriteCsvToResponse(); break; } } catch (Exception ex) { //_Security.ErrorDesscription = ex.Message; //_Security.ErrorModule = "Exporting Corporation Tax Inquiry"; //_Security.SaveError(); } }
protected void Grid_ContextMenuItemClick(object sender, ASPxGridViewContextMenuItemClickEventArgs e) { switch (e.Item.Name) { case "ExportToWord": ASPxGridViewExporter1.WriteRtfToResponse(); break; case "ExportToPDF": ASPxGridViewExporter1.WritePdfToResponse(); break; case "ExportToXLS": ASPxGridViewExporter1.WriteXlsToResponse(); break; case "ExportToCSV": ASPxGridViewExporter1.WriteCsvToResponse(); break; } }