The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v18.2.dll

Declaration

[SRCategory(ReportStringId.CatDesign)]
[XtraSerializableProperty]
public string DataSourceSchema { get; set; }
<SRCategory(ReportStringId.CatDesign)>
<XtraSerializableProperty>
Public Property DataSourceSchema As String

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