Spread for ASP.NET 7.0 Product Documentation
Aggregate Event
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class : Aggregate Event


Glossary Item Box

Occurs when the data model aggregate.

Syntax

Visual Basic (Declaration) 
Public Event Aggregate As AggregateEventHandler
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim handler As AggregateEventHandler
 
AddHandler instance.Aggregate, handler
C# 
public event AggregateEventHandler Aggregate

Example

This example returns the column and aggregate type.
C#Copy Code
protected void FpSpread1Aggregate(object sender, FarPoint.Web.Spread.Model.AggregateArgs e) 
{
    string msg = ("The column with the aggregate is " + (e.Column + (" and the aggregate type is " + e.AggregationType)));
    Response.Write("<script language='javascript'>alert('" + msg + "')</script>")
}
Visual BasicCopy Code
Protected Sub FpSpread1Aggregate(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.Model.AggregateArgs) Handles FpSpread1.Aggregate
    Dim msg As String = "The column with the aggregate is " & e.Column & " and the aggregate type is " & e.AggregationType
    Response.Write("<script language='javascript'>alert('" & msg & "')</script>")
End Sub

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.