# GrapeCity.ActiveReports.PageReportModel.DataRegion.DataSetName

## Content

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



<h1 id="GrapeCity_ActiveReports_PageReportModel_DataRegion_DataSetName_" data-uid="GrapeCity.ActiveReports.PageReportModel.DataRegion.DataSetName*">DataSetName Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_PageReportModel_DataRegion_DataSetName_" data-uid="GrapeCity.ActiveReports.PageReportModel.DataRegion.DataSetName*"></a>
<h4 id="GrapeCity_ActiveReports_PageReportModel_DataRegion_DataSetName" data-uid="GrapeCity.ActiveReports.PageReportModel.DataRegion.DataSetName">DataSetName</h4>
<div class="markdown level1 summary"><p>Gets or sets the name of the dataset used by the data region.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string DataSetName { 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>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value indicating the dataset name used by the data region.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_PageReportModel_DataRegion_DataSetName_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If there are multiple datasets in the report, DataSetName is required for all DataRegions not contained within a parent data region.</p>
<p>If there is only one dataset in the report, this dataset is assumed if DataSetName is not specified.</p>
<p>If there are no datasets in the report, DataSetName cannot be set.</p>
</div>
<h5 id="GrapeCity_ActiveReports_PageReportModel_DataRegion_DataSetName_examples">Examples</h5>
<pre><code class="lang-csharp">dataRegion.DataSetName = "SalesData";</code></pre>

</div>
