[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReport.DataSource

DataSource Property

DataSource

Gets or sets a value representing the report data source.

Declaration
[TypeConverter(typeof())]
public object DataSource { get; set; }
Examples
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
var reader = System.Xml.XmlReader.Create("Report.rpx");
sectionReport.LoadLayout(reader, out System.Collections.ArrayList error);
sectionReport.Document.Printer.PrinterName = String.Empty;
var ds = new System.Data.DataSet();
ds.ReadXml("XML_Schema_and_Data.xml");
sectionReport.DataSource = ds.Tables[0];
sectionReport.DataMember = ds.Tables[0].TableName;
reader.Close();