See Also

TextBox Class  | TextBox Members  | SummaryGroup  | SummaryRunning  | SummaryType

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

SummaryFunc Property

Gets or sets the summary function type used to process the DataField values.

[Visual Basic]
Public Property SummaryFunc As SummaryFunc
[C#]
public SummaryFunc SummaryFunc {get; set;}

Return Type

SummaryFunc enumeration value that specifies the type of summarization to be performed on the field.  Default is SummaryFunc.Sum

Remarks

You can use this function to create subtotals, grand totals and other summary values.  SummaryFunc has no effect unless the SummaryType property is set to either SubTotal or GrandTotal.

Note: When a summary function is used on a control, the CanGrow and CanShrink properties will have no effect since the summary is calculated after the control height has been determined and finalized.

 

Example

[C#] 

private void Detail_Format(object sender, System.EventArgs eArgs) 

    this.TextBox1.SummaryFunc = SummaryFunc.Sum; 
    this.TextBox1.SummaryGroup = null; 
    this.TextBox1.SummaryRunning = SummaryRunning.None; 
    this.TextBox1.SummaryType = SummaryType.None; 
}

[Visual Basic] 

Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
   Me.TextBox1.SummaryFunc = SummaryFunc.Sum
   Me.TextBox1.SummaryGroup = Nothing
   Me.TextBox1.SummaryRunning = SummaryRunning.None
   Me.TextBox1.SummaryType = SummaryType.None
End Sub

See Also

TextBox Class  | TextBox Members  | SummaryGroup  | SummaryRunning  | SummaryType

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.