Spread ASP.NET 15
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / FpSpread Class / Aggregate Event
Example


In This Topic
    Aggregate Event (FpSpread)
    In This Topic
    Occurs when the data model aggregates.
    Syntax
    'Declaration
     
    Public Event Aggregate As AggregateEventHandler
    'Usage
     
    Dim instance As FpSpread
    Dim handler As AggregateEventHandler
     
    AddHandler instance.Aggregate, handler
    public event AggregateEventHandler Aggregate
    Example
    This example returns the column and aggregate type.
    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>")
    }
    
    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
    See Also