# C1.Win.FlexReport.ChartField.DataSource

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexReport_ChartField_DataSource_" data-uid="C1.Win.FlexReport.ChartField.DataSource*">DataSource Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexReport_ChartField_DataSource_" data-uid="C1.Win.FlexReport.ChartField.DataSource*"></a>
<h4 id="C1_Win_FlexReport_ChartField_DataSource" data-uid="C1.Win.FlexReport.ChartField.DataSource">DataSource</h4>
<div class="markdown level1 summary"><p>Gets or sets the name of the data source for the chart.
The name must match a name of a data source in the report's DataSources collection.
Empty string indicates that the main data source will be used.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string DataSource { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property DataSource As String</code></pre>
</div>
</div>
