# C1.Win.FlexGrid.SubtotalEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_SubtotalEventArgs__ctor_" data-uid="C1.Win.FlexGrid.SubtotalEventArgs.#ctor*">SubtotalEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_SubtotalEventArgs__ctor_" data-uid="C1.Win.FlexGrid.SubtotalEventArgs.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_SubtotalEventArgs__ctor_C1_Win_FlexGrid_AggregateEnum_System_Int32_System_Int32_System_Int32_System_Int32_System_String_System_Int32_System_Boolean_System_Int32_System_Int32_System_Object_C1_Win_FlexGrid_CellStyle_" data-uid="C1.Win.FlexGrid.SubtotalEventArgs.#ctor(C1.Win.FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,System.Int32,System.Boolean,System.Int32,System.Int32,System.Object,C1.Win.FlexGrid.CellStyle)">SubtotalEventArgs(AggregateEnum, int, int, int, int, string, int, bool, int, int, object, CellStyle)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Win.FlexGrid.SubtotalEventArgs.html">SubtotalEventArgs</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SubtotalEventArgs(AggregateEnum function, int level, int groupFrom, int groupTo, int totalOn, string caption, int newRowIndex, bool isNewRow, int top, int bottom, object aggregateValue, CellStyle style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New([function] As AggregateEnum, level As Integer, groupFrom As Integer, groupTo As Integer, totalOn As Integer, caption As String, newRowIndex As Integer, isNewRow As Boolean, top As Integer, bottom As Integer, aggregateValue As Object, style As CellStyle)</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="C1.Win.FlexGrid.AggregateEnum.html">AggregateEnum</a></td>
      <td><span class="parametername">function</span></td>
      <td><p><a class="xref" href="C1.Win.FlexGrid.AggregateEnum.html">AggregateEnum</a> value that specifies the type of aggregate to calculate.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">level</span></td>
      <td><p>Outline level to assign to the new subtotal rows. This parameter allows the creation of multi-level subtotals and affects the display of the outline tree.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">groupFrom</span></td>
      <td><p>First column in the range used to detect group breaks.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">groupTo</span></td>
      <td><p>Last column in the range used to detect group breaks.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">totalOn</span></td>
      <td><p>Column that contains values being aggregated.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">caption</span></td>
      <td><p>Text to insert in the new subtotal row.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">newRowIndex</span></td>
      <td><p>Index of the new subtotal row.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isNewRow</span></td>
      <td><p>Whether the subtotal row is a new row or the subtotal is being added to an existing subtotal row.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">top</span></td>
      <td><p>Index of the top row in the group.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">bottom</span></td>
      <td><p>Index of the bottom row in the group.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">aggregateValue</span></td>
      <td><p>Calculated aggregate value for the group.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.CellStyle.html">CellStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p><a class="xref" href="C1.Win.FlexGrid.CellStyle.html">CellStyle</a> to be applied to the new subotal row.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
