ReportTestDataSourceBehavior(Type, Nullable<Int32>, Nullable<Single>) 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,
int? rowCount,
float? temperature
)
Parameters
| Name | Type | Description |
|---|---|---|
| behaviorSourceType | Type | The type of the target control to which the behavior is attached. |
| rowCount | Nullable<Int32> | The number of rows/records the AI service generates for the test data source. This value is assigned to the RowCount property. |
| temperature | Nullable<Single> | The balance between creativity and consistency in AI responses. A number between 0 and 1 (or 0 and 2) depending on the AI behavior and model. This value is assigned to the Temperature property. |
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).