WinReportServiceController.CustomShowDesignForm Event

Occurs before showing the Report Designer form.

Namespace: DevExpress.ExpressApp.ReportsV2.Win

Assembly: DevExpress.ExpressApp.ReportsV2.Win.v18.2.dll


public event EventHandler<CustomShowDesignFormEventArgs> CustomShowDesignForm
Public Event CustomShowDesignForm As EventHandler(Of CustomShowDesignFormEventArgs)

Event Data

The CustomShowDesignForm event handler receives an argument of the DevExpress.ExpressApp.ReportsV2.Win.CustomShowDesignFormEventArgs type.


The CustomShowDesignForm event is raised when the ReportServiceController.ShowDesigner method shows the Report Designer form. Handle this event to implement the custom logic to be executed before showing the Report Desigher. The following snippet illustrates how to perform customization of the DesignForm and Report objects - hide the Report Designer from the Windows taskbar and disable grid drawing.

using DevExpress.ExpressApp.ReportsV2.Win;
// ...
public class CustomizeReportDesignerController : ViewController {
    private WinReportServiceController reportService;
    protected override void OnActivated() {
        reportService = Frame.GetController<WinReportServiceController>();
        if (reportService != null) 
            reportService.CustomShowDesignForm += reportService_CustomShowDesignForm;
    void reportService_CustomShowDesignForm(object sender, CustomShowDesignFormEventArgs e) {
        ((System.Windows.Forms.Form)e.DesignForm).ShowInTaskbar = false;
        e.Report.DrawGrid = false;
    protected override void OnDeactivated() {
        if (reportService != null)
            reportService.CustomShowDesignForm -= reportService_CustomShowDesignForm;

You can set the Handled parameter to true to suppress the default Report Designer.

See Also