XtraReport.DataSourceSchema Property
Gets or sets an XML/XSD file, containing a schema of a report’s data source.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.XtraReports.v24.1.dll
NuGet Package: DevExpress.Reporting.Core
Declaration
[DefaultValue("")]
[SRCategory(ReportStringId.CatDesign)]
public string DataSourceSchema { get; set; }
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | A String value. |
Remarks
This property is retained for backward compatibility and should no longer be used. See Bind a Report to a Data Source Schema for information on how to bind a report to an XSD file.
The following example demonstrates how to specify the data source schema at runtime.
using DevExpress.XtraReports.UI;
//...
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
XtraReport report = CreateReport();
ReportDesignTool designTool = new ReportDesignTool(report);
designTool.ShowRibbonDesignerDialog();
}
private XtraReport CreateReport()
{
XtraReport report = new XtraReport();
report.DataSourceSchema = "schema.xsd";
report.DataSource = new nWindDataSet();
return report;
}
}
See Also