Spread ASP.NET 6.0 Product Documentation
RowCount Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > AggregateArgs Class : RowCount Property


Glossary Item Box

Gets the number of rows.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property RowCount As Integer
Visual Basic (Usage)Copy Code
Dim instance As AggregateArgs
Dim value As Integer
 
value = instance.RowCount
C# 
public int RowCount {get;}

Example

This example returns the number of rows in the aggregate.
C#Copy Code
protected void FpSpread1Aggregate(object sender, FarPoint.Web.Spread.Model.AggregateArgs e) 
{
    string msg = "The row in the aggregate is " + e.Row.ToString();
    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 row in the aggregate is " & e.Row.ToString()
    TextBox1.Text = msg
End Sub

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.