# GrapeCity.ActiveReports.Rdl.Model.DataSetExtensions.GetParentFieldName

## Content

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



<h1 id="GrapeCity_ActiveReports_Rdl_Model_DataSetExtensions_GetParentFieldName_" data-uid="GrapeCity.ActiveReports.Rdl.Model.DataSetExtensions.GetParentFieldName*">GetParentFieldName Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rdl_Model_DataSetExtensions_GetParentFieldName_" data-uid="GrapeCity.ActiveReports.Rdl.Model.DataSetExtensions.GetParentFieldName*"></a>
<h4 id="GrapeCity_ActiveReports_Rdl_Model_DataSetExtensions_GetParentFieldName_GrapeCity_ActiveReports_PageReportModel_IDataSet_" data-uid="GrapeCity.ActiveReports.Rdl.Model.DataSetExtensions.GetParentFieldName(GrapeCity.ActiveReports.PageReportModel.IDataSet)">GetParentFieldName(IDataSet)</h4>
<div class="markdown level1 summary"><p>Gets a name of the field that is the data source of the specified dataset.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static string GetParentFieldName(this IDataSet dataSet)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IDataSet.html">IDataSet</a></td>
      <td><span class="parametername">dataSet</span></td>
      <td><p>A target <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IDataSet.html">IDataSet</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</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 name of the field that is the data source of the specified dataset.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
