# GrapeCity.ActiveReports.PageReportModel.ReportParameter.UsedInQuery

## Content

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



<h1 id="GrapeCity_ActiveReports_PageReportModel_ReportParameter_UsedInQuery_" data-uid="GrapeCity.ActiveReports.PageReportModel.ReportParameter.UsedInQuery*">UsedInQuery Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_PageReportModel_ReportParameter_UsedInQuery_" data-uid="GrapeCity.ActiveReports.PageReportModel.ReportParameter.UsedInQuery*"></a>
<h4 id="GrapeCity_ActiveReports_PageReportModel_ReportParameter_UsedInQuery" data-uid="GrapeCity.ActiveReports.PageReportModel.ReportParameter.UsedInQuery">UsedInQuery</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating whether the parameter is used in a query within the report.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ReportParameterUsedInQuery UsedInQuery { 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="GrapeCity.ActiveReports.PageReportModel.ReportParameterUsedInQuery.html">ReportParameterUsedInQuery</a></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ReportParameterUsedInQuery.html">ReportParameterUsedInQuery</a> value indicating whether the parameter is used in a query within the report.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_PageReportModel_ReportParameter_UsedInQuery_remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;This property helps determine if queries need to be re-executed when the parameter changes.&lt;/p&gt;
&lt;p&gt;
    &lt;xref href=&quot;GrapeCity.ActiveReports.PageReportModel.ReportParameterUsedInQuery.Auto&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; (default) automatically detects if the parameter 
</code></pre>
<p>is referenced in any query value expression. If so, it returns <code>true</code>; otherwise, <code>false</code>.</p>
</div>
</div>
