# C1.Win.FlexGrid.C1FlexGridBase.BeforeSubtotal

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_FlexGrid_C1FlexGridBase_BeforeSubtotal" data-uid="C1.Win.FlexGrid.C1FlexGridBase.BeforeSubtotal" class="text-break">BeforeSubtotal Event
</h1>
<div class="markdown level0 summary"><p>Fires before each subtotal row is added to the grid.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.FlexGrid.html">C1.Win.FlexGrid</a></h6>
<h6><strong>Assembly</strong>: C1.Win.FlexGrid.10.dll</h6>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_BeforeSubtotal_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event SubtotalEventHandler BeforeSubtotal</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event BeforeSubtotal As SubtotalEventHandler</code></pre>
</div>
<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><a class="xref" href="C1.Win.FlexGrid.SubtotalEventHandler.html">SubtotalEventHandler</a></td>
      <td>Fires before each subtotal row is added to the grid.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_BeforeSubtotal_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>Subtotal rows are added when the <span class="xref">C1.Win.FlexGrid.C1FlexGridBase.Subtotal(C1.Win.FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.FlexGrid.AggregateFlags,C1.Win.FlexGrid.RowColFlags)</span> method is invoked.</p>
<p>The event handler may prevent the grid from adding a particular row, or it
may customize the caption, style, and aggregate value used in the new subtotal row.</p>
</div>
</div>
