# GrapeCity.ActiveReports.SectionReport.DataSource

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_SectionReport_DataSource_" data-uid="GrapeCity.ActiveReports.SectionReport.DataSource*">DataSource Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_SectionReport_DataSource_" data-uid="GrapeCity.ActiveReports.SectionReport.DataSource*"></a>
<h4 id="GrapeCity_ActiveReports_SectionReport_DataSource" data-uid="GrapeCity.ActiveReports.SectionReport.DataSource">DataSource</h4>
<div class="markdown level1 summary"><p>Gets or sets a value representing the report data source.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[TypeConverter(typeof())]
public object DataSource { get; set; }</code></pre>
</div>
<h5 id="GrapeCity_ActiveReports_SectionReport_DataSource_examples">Examples</h5>
<pre><code class="lang-csharp">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();</code></pre>

</div>
