# GrapeCity.ActiveReports.SectionReport.DataMember

## Content

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



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



<a id="GrapeCity_ActiveReports_SectionReport_DataMember_" data-uid="GrapeCity.ActiveReports.SectionReport.DataMember*"></a>
<h4 id="GrapeCity_ActiveReports_SectionReport_DataMember" data-uid="GrapeCity.ActiveReports.SectionReport.DataMember">DataMember</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating the name of the list or table in the DataSource to which the report will bind.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string DataMember { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><p>Unbound data source member name.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_DataMember_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The default is an empty string.</p>
</div>
<h5 id="GrapeCity_ActiveReports_SectionReport_DataMember_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>
