# C1.WPF.FlexGrid.C1FlexGrid.CustomAggregate

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_WPF_FlexGrid_C1FlexGrid_CustomAggregate" data-uid="C1.WPF.FlexGrid.C1FlexGrid.CustomAggregate" class="text-break">CustomAggregate Event
</h1>
<div class="markdown level0 summary"><p>Occurs when the grid needs to calculate a custom aggregate.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.FlexGrid.html">C1.WPF.FlexGrid</a></h6>
<h6><strong>Assembly</strong>: C1.WPF.FlexGrid.4.6.2.dll</h6>
<h5 id="C1_WPF_FlexGrid_C1FlexGrid_CustomAggregate_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler&lt;CustomAggregateEventArgs&gt; CustomAggregate</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event CustomAggregate As EventHandler(Of CustomAggregateEventArgs)</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="https://learn.microsoft.com/dotnet/api/system.eventhandler-1">EventHandler</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.CustomAggregateEventArgs.html">CustomAggregateEventArgs</a>&gt;</td>
      <td>Occurs when the grid needs to calculate a custom aggregate.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_FlexGrid_C1FlexGrid_CustomAggregate_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>The event arguments contain a range that is to be aggregated; the
event handler should calculate the custom aggregate and assign the
value to the <b>Result</b> parameter.</p>
</div>
</div>
