# GrapeCity.ActiveReports.PageReportModel.Subtotal

## Content

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



  <h1 id="GrapeCity_ActiveReports_PageReportModel_Subtotal" data-uid="GrapeCity.ActiveReports.PageReportModel.Subtotal" class="text-break">Subtotal Class
</h1>
  <div class="markdown level0 summary"><p>Represents a Subtotals element defines a subtotal column or row to include in a matrix.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ReportComponent.html">ReportComponent</a></div>
    <div class="level4"><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ReportComponentContainer.html">ReportComponentContainer</a></div>
    <div class="level5"><span class="xref">Subtotal</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IReportComponentContainer.html">IReportComponentContainer</a></div>
    <div><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IRdlContainer.html">IRdlContainer</a></div>
    <div><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IReportComponent.html">IReportComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IValidateable.html">IValidateable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.html">GrapeCity.ActiveReports.PageReportModel</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Rdl.dll</h6>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_Subtotal_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class Subtotal : ReportComponentContainer, IReportComponentContainer, IRdlContainer, IReportComponent, IComponent, IDisposable, IValidateable</code></pre>
  </div>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_Subtotal_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>In the subtotal column or row, the full set of data for the entire group is aggregated in the matrix cell.</p>
    <p>If a matrix cell contains an aggregate that uses an explicit grouping scope contained within the scope of the aggregate, 
that scope is automatically adjusted to equal the current scope. For example, if a textbox in a matrix cell contains the 
expression =Sum(Fields!Sales.Value/Sum(Fields!Sales.Value,"State") and this subtotal is applied to the Country grouping scope, 
the expression evaluates to =Sum(Fields!Sales.Value)/Sum(Fields!Sales.Value,"Country"), since the State grouping scope 
is contained within the country grouping scope.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subtotal__ctor" data-uid="GrapeCity.ActiveReports.PageReportModel.Subtotal.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subtotal.-ctor.html#GrapeCity_ActiveReports_PageReportModel_Subtotal__ctor">Subtotal()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subtotal.html">Subtotal</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subtotal_DataElementName" data-uid="GrapeCity.ActiveReports.PageReportModel.Subtotal.DataElementName">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subtotal.DataElementName.html#GrapeCity_ActiveReports_PageReportModel_Subtotal_DataElementName">DataElementName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a name of the top-level XML element that represents the subtotal.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subtotal_DataElementOutput" data-uid="GrapeCity.ActiveReports.PageReportModel.Subtotal.DataElementOutput">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subtotal.DataElementOutput.html#GrapeCity_ActiveReports_PageReportModel_Subtotal_DataElementOutput">DataElementOutput</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the item appears in a data rendering.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subtotal_Name" data-uid="GrapeCity.ActiveReports.PageReportModel.Subtotal.Name">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subtotal.Name.html#GrapeCity_ActiveReports_PageReportModel_Subtotal_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a name of a subtotal.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subtotal_Position" data-uid="GrapeCity.ActiveReports.PageReportModel.Subtotal.Position">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subtotal.Position.html#GrapeCity_ActiveReports_PageReportModel_Subtotal_Position">Position</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the subtotal column or row appears before (left or above) or after (right or below) the detail columns or rows.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subtotal_Style" data-uid="GrapeCity.ActiveReports.PageReportModel.Subtotal.Style">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subtotal.Style.html#GrapeCity_ActiveReports_PageReportModel_Subtotal_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style properties that override the style properties for all top-level report items contained in the subtotal column or row.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subtotal_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_" data-uid="GrapeCity.ActiveReports.PageReportModel.Subtotal.Validate(GrapeCity.ActiveReports.PageReportModel.ValidationContext)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subtotal.Validate.html#GrapeCity_ActiveReports_PageReportModel_Subtotal_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_">Validate(ValidationContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates the current state of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subtotal.html">Subtotal</a> object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.RomUtils.GetReportFromComponent.html#GrapeCity_ActiveReports_PageReportModel_RomUtils_GetReportFromComponent_GrapeCity_ActiveReports_PageReportModel_IReportComponent_">RomUtils.GetReportFromComponent(IReportComponent)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.RomUtils.GetReportSectionFromComponent.html#GrapeCity_ActiveReports_PageReportModel_RomUtils_GetReportSectionFromComponent_GrapeCity_ActiveReports_PageReportModel_IReportComponent_">RomUtils.GetReportSectionFromComponent(IReportComponent)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange.html#GrapeCity_ActiveReports_Rdl_Tools_CollectionExtensions_AddRange__2___0_System_Collections_Generic_IEnumerable___1__">CollectionExtensions.AddRange&lt;TCollection, TItem&gt;(TCollection, IEnumerable&lt;TItem&gt;)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.ReportItemExtensions.Clone.html#GrapeCity_ActiveReports_Rdl_Tools_ReportItemExtensions_Clone__1___0_">ReportItemExtensions.Clone&lt;TItem&gt;(TItem)</a>
  </div>

</div>
