# GrapeCity.ActiveReports.Rendering.DataTreeBuilder.BuildQuery

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_DataTreeBuilder_BuildQuery_" data-uid="GrapeCity.ActiveReports.Rendering.DataTreeBuilder.BuildQuery*">BuildQuery Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_DataTreeBuilder_BuildQuery_" data-uid="GrapeCity.ActiveReports.Rendering.DataTreeBuilder.BuildQuery*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_DataTreeBuilder_BuildQuery_GrapeCity_ActiveReports_Rendering_ReportStore_" data-uid="GrapeCity.ActiveReports.Rendering.DataTreeBuilder.BuildQuery(GrapeCity.ActiveReports.Rendering.ReportStore)">BuildQuery(ReportStore)</h4>
<div class="markdown level1 summary"><p>Builds a query for the given <a class="xref" href="GrapeCity.ActiveReports.Rendering.ReportStore.html">ReportStore</a> and <a class="xref" href="GrapeCity.ActiveReports.Core.Rendering.Data.SubreportsInfo.html">SubreportsInfo</a> templates.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Def.Report BuildQuery(this ReportStore reportStore)</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.Rendering.ReportStore.html">ReportStore</a></td>
      <td><span class="parametername">reportStore</span></td>
      <td><p>The report store.</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><span class="xref">Def</span>.<span class="xref">Report</span></td>
      <td><p>A <span class="xref">GrapeCity.Enterprise.Data.DataEngine.Def.Report</span> object representing the built query.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Rendering_DataTreeBuilder_BuildQuery_" data-uid="GrapeCity.ActiveReports.Rendering.DataTreeBuilder.BuildQuery*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_DataTreeBuilder_BuildQuery_GrapeCity_ActiveReports_Rendering_ReportStore_GrapeCity_ActiveReports_Core_Rendering_IExpressionEvaluatorService_" data-uid="GrapeCity.ActiveReports.Rendering.DataTreeBuilder.BuildQuery(GrapeCity.ActiveReports.Rendering.ReportStore,GrapeCity.ActiveReports.Core.Rendering.IExpressionEvaluatorService)">BuildQuery(ReportStore, IExpressionEvaluatorService)</h4>
<div class="markdown level1 summary"><p>Builds a query for the given <a class="xref" href="GrapeCity.ActiveReports.Rendering.ReportStore.html">ReportStore</a> and <a class="xref" href="GrapeCity.ActiveReports.Core.Rendering.Data.SubreportsInfo.html">SubreportsInfo</a> templates.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Def.Report BuildQuery(this ReportStore reportStore, IExpressionEvaluatorService evaluatorService)</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.Rendering.ReportStore.html">ReportStore</a></td>
      <td><span class="parametername">reportStore</span></td>
      <td><p>The report store.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Core.Rendering.IExpressionEvaluatorService.html">IExpressionEvaluatorService</a></td>
      <td><span class="parametername">evaluatorService</span></td>
      <td><p>The expression evaluator service, optional.
This service is used to build dynamic query (dynamic groups in Tablix/Table/BandedList).</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><span class="xref">Def</span>.<span class="xref">Report</span></td>
      <td><p>A <span class="xref">GrapeCity.Enterprise.Data.DataEngine.Def.Report</span> object representing the built query.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Rendering_DataTreeBuilder_BuildQuery_GrapeCity_ActiveReports_Rendering_ReportStore_GrapeCity_ActiveReports_Core_Rendering_IExpressionEvaluatorService__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is intended for use in Wyn Reporting</p>
</div>
</div>
