# C1.Report.DiagramChartField.GetDataSource

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Report_DiagramChartField_GetDataSource_" data-uid="C1.Report.DiagramChartField.GetDataSource*">GetDataSource Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Report_DiagramChartField_GetDataSource_" data-uid="C1.Report.DiagramChartField.GetDataSource*"></a>
<h4 id="C1_Report_DiagramChartField_GetDataSource" data-uid="C1.Report.DiagramChartField.GetDataSource">GetDataSource()</h4>
<div class="markdown level1 summary"><p>Returns <a class="xref" href="C1.Report.DataSource.html">DataSource</a> specified for this field in the <a class="xref" href="C1.Report.DiagramChartField.DataSourceName.html#C1_Report_DiagramChartField_DataSourceName">DataSourceName</a> property,
returns null if <a class="xref" href="C1.Report.DiagramChartField.DataSourceName.html#C1_Report_DiagramChartField_DataSourceName">DataSourceName</a> is null or empty, throws an exception
if <a class="xref" href="C1.Report.DataSource.html">DataSource</a> with specified name not found.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected DataSource GetDataSource()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function GetDataSource() As DataSource</code></pre>
</div>
<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="C1.Report.DataSource.html">DataSource</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
