# GrapeCity.ActiveReports.Aspnetcore.Viewer.ReportingSettings.SetLocateDataSource

## Content

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



<h1 id="GrapeCity_ActiveReports_Aspnetcore_Viewer_ReportingSettings_SetLocateDataSource_" data-uid="GrapeCity.ActiveReports.Aspnetcore.Viewer.ReportingSettings.SetLocateDataSource*">SetLocateDataSource Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Aspnetcore_Viewer_ReportingSettings_SetLocateDataSource_" data-uid="GrapeCity.ActiveReports.Aspnetcore.Viewer.ReportingSettings.SetLocateDataSource*"></a>
<h4 id="GrapeCity_ActiveReports_Aspnetcore_Viewer_ReportingSettings_SetLocateDataSource_System_Func_GrapeCity_ActiveReports_Web_Viewer_LocateDataSourceArgs_System_Object__" data-uid="GrapeCity.ActiveReports.Aspnetcore.Viewer.ReportingSettings.SetLocateDataSource(System.Func{GrapeCity.ActiveReports.Web.Viewer.LocateDataSourceArgs,System.Object})">SetLocateDataSource(Func&lt;LocateDataSourceArgs, object&gt;)</h4>
<div class="markdown level1 summary"><p>Sets a delegate that locates a data source based on the provided locate arguments.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetLocateDataSource(Func&lt;LocateDataSourceArgs, object&gt; loadDataSource)</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="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Web.Viewer.LocateDataSourceArgs.html">LocateDataSourceArgs</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">loadDataSource</span></td>
      <td><p>A delegate used to locate data sources.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
