# GrapeCity.ActiveReports.Web.Designer.ReportDesignerConfiguration.LocateDataSource

## Content

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



<h1 id="GrapeCity_ActiveReports_Web_Designer_ReportDesignerConfiguration_LocateDataSource_" data-uid="GrapeCity.ActiveReports.Web.Designer.ReportDesignerConfiguration.LocateDataSource*">LocateDataSource Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Web_Designer_ReportDesignerConfiguration_LocateDataSource_" data-uid="GrapeCity.ActiveReports.Web.Designer.ReportDesignerConfiguration.LocateDataSource*"></a>
<h4 id="GrapeCity_ActiveReports_Web_Designer_ReportDesignerConfiguration_LocateDataSource" data-uid="GrapeCity.ActiveReports.Web.Designer.ReportDesignerConfiguration.LocateDataSource">LocateDataSource</h4>
<div class="markdown level1 summary"><p>Gets or sets the function to locate the data source.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Func&lt;object&gt; LocateDataSource { 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.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func&lt;TResult&gt;</a> that returns the data source object.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Web_Designer_ReportDesignerConfiguration_LocateDataSource_examples">Examples</h5>
<pre><code class="lang-csharp">app.UseReportDesigner(config =&gt;
{
	// An example for JSON provider.
	config.LocateDataSource = () =&gt; "[{\"id\":1,\"name\":\"A\"},{\"id\":2,\"name\":\"B\"}]";
});</code></pre>

</div>
