Visual Basic (Declaration) | |
---|---|
Public Property SummaryFunc As SummaryFunc |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public SummaryFunc SummaryFunc {get; set;} |
Return Value
SummaryFunc enumeration value that specifies the type of summarization to be performed on the field. Default is SummaryFunc.SumC# | Copy Code |
---|---|
private void detail_Format(object
sender, System.EventArgs eArgs) |
Visual Basic | Copy Code |
---|---|
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format |
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.