ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.8 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / Subtotal Method / Subtotal(AggregateEnum,Int32,Int32,Int32,Int32,String) Method
C1.Win.C1FlexGrid.AggregateEnum value that specifies the type of aggregate to calculate.
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.
First column in the range used to detect group breaks.
Last column in the range used to detect group breaks.
Column that contains values to be aggregated (usually numeric).
Text to insert in the subtotal rows.

In This Topic
    Subtotal(AggregateEnum,Int32,Int32,Int32,Int32,String) Method
    In This Topic
    Groups rows based on cell contents and calculates aggregate values.
    Syntax
    'Declaration
     
    Public Overloads Sub Subtotal( _
       ByVal aggType As AggregateEnum, _
       ByVal level As Integer, _
       ByVal groupFrom As Integer, _
       ByVal groupTo As Integer, _
       ByVal totalOn As Integer, _
       ByVal caption As String _
    ) 
    public void Subtotal( 
       AggregateEnum aggType,
       int level,
       int groupFrom,
       int groupTo,
       int totalOn,
       string caption
    )

    Parameters

    aggType
    C1.Win.C1FlexGrid.AggregateEnum value that specifies the type of aggregate to calculate.
    level
    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.
    groupFrom
    First column in the range used to detect group breaks.
    groupTo
    Last column in the range used to detect group breaks.
    totalOn
    Column that contains values to be aggregated (usually numeric).
    caption
    Text to insert in the subtotal rows.
    See Also