# GrapeCity.ActiveReports.PageReportModel.Grouping.Enabled

## Content

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



<h1 id="GrapeCity_ActiveReports_PageReportModel_Grouping_Enabled_" data-uid="GrapeCity.ActiveReports.PageReportModel.Grouping.Enabled*">Enabled Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_PageReportModel_Grouping_Enabled_" data-uid="GrapeCity.ActiveReports.PageReportModel.Grouping.Enabled*"></a>
<h4 id="GrapeCity_ActiveReports_PageReportModel_Grouping_Enabled" data-uid="GrapeCity.ActiveReports.PageReportModel.Grouping.Enabled">Enabled</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating whether the grouping is enabled.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ExpressionInfo Enabled { 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="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a></td>
      <td><p>An <a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a> object representing an expression which should be evaluated to
<code>true</code> or <code>false</code> value to specify whether the grouping is enabled or not.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_PageReportModel_Grouping_Enabled_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The grouping is enabled by default. When the expression evaluates to false, the grouping will be ignored.
Note that the expression cannot contain data references (like fields, aggregate functions) and
render-time functions (RowNumber, etc.).
Only the constants, conditional operators, common functions, and parameters are allowed.</p>
</div>
<h5 id="GrapeCity_ActiveReports_PageReportModel_Grouping_Enabled_examples">Examples</h5>
<pre><code class="lang-csharp">Grouping group = new Grouping();
group.Enabled = ExpressionInfo.FromString("=Parameters!GroupByCategory.Value");</code></pre>

</div>
