Skip to main content
All docs
V25.2
  • ReportTestDataSourceBehavior(Type) Constructor

    Initializes a new instance of the ReportTestDataSourceBehavior class with specified settings.

    Namespace: DevExpress.AIIntegration.WinForms.Reporting

    Assembly: DevExpress.AIIntegration.WinForms.Reporting.v25.2.dll

    NuGet Package: DevExpress.AIIntegration.WinForms.Reporting

    Declaration

    public ReportTestDataSourceBehavior(
        Type behaviorSourceType
    )

    Parameters

    Name Type Description
    behaviorSourceType Type

    The type of the target control to which the behavior is attached.

    Remarks

    Drop the BehaviorManager component from the Toolbox onto a Form that contains the WinForms Report Designer control. Use the following code to register a ReportTestDataSourceBehavior and attach it to the WinForms Report Designer (reportDesigner1):

    using DevExpress.AIIntegration.WinForms.Reporting;
    
    namespace DXAppReportsTestData {
        public partial class XtraForm1 : DevExpress.XtraBars.Ribbon.RibbonForm {
            public XtraForm2() {
                InitializeComponent();
    
                behaviorManager1.Attach<ReportTestDataSourceBehavior>(reportDesigner1, behavior => {
                    behavior.Properties.Temperature = 0.3f;
                    behavior.Properties.RowCount = 10;
                });
    
                reportDesigner1.OpenReport(new Report1());
            }
        }
    }
    

    See the following help topic for more information: Preview Reports with AI-generated Test Data (WinForms Report Designer).

    See Also