ReportDesignTool.DesignForm Property

Provides access to the standard End-User Report Designer form of the ReportDesignTool.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v21.1.Extensions.dll

Declaration

public IDesignForm DesignForm { get; }

Property Value

Type Description
IDesignForm

An object implementing the IDesignForm interface (typically, an XRDesignForm instance).

Remarks

To learn more, see Create a Custom End-User Report Designer.

Example

This example demonstrates how to use the ReportDesignTool class, to load a report into an End-User Report Designer form.

Then, to access the properties of the report and the Designer form, use the ReportDesignTool.Report and ReportDesignTool.DesignForm properties.

using System;
using System.Windows.Forms;
using DevExpress.XtraReports.UI;
using DevExpress.XtraReports.UserDesigner;
// ...

private void button1_Click(object sender, EventArgs e) {
    // Create a Design Tool instance with a report assigned to it.
    ReportDesignTool dt = new ReportDesignTool(new XtraReport1());

    // Access the report's properties.
    dt.Report.DrawGrid = false;

    // Access the Designer form's properties.
    dt.DesignForm.SetWindowVisibility(DesignDockPanelType.FieldList | 
        DesignDockPanelType.PropertyGrid, false);

    // Show the Designer form, modally.
    dt.ShowDesignerDialog();
}
See Also