[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReport.DataMember

DataMember Property

DataMember

Gets or sets a value indicating the name of the list or table in the DataSource to which the report will bind.

Declaration
public string DataMember { get; set; }
Property Value
Type Description
string

Unbound data source member name.

Remarks

The default is an empty string.

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();