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


Glossary Item Box

Gets the number of rows in the group.

Syntax

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

Property Value

Integer number of rows

Example

This example returns the row count for the group.
C#Copy Code
private void button1_Click(object sender, EventArgs e)
{
if ((FpSpread1.ActiveSheetView.DataModel) is FarPoint.Web.Spread.Model.GroupDataModel)
{
gm = (FarPoint.Web.Spread.Model.GroupDataModel)FpSpread1.ActiveSheetViewDataModel;
int i;
i = gm.RowCount();
String msg = i.ToString();
Response.Write("alert('" + msg + "')");
}
}
Visual BasicCopy Code
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim gm As FarPoint.Web.Spread.Model.GroupDataModel
If TypeOf (FpSpread1.ActiveSheetView.DataModel) Is FarPoint.Web.Spread.Model.GroupDataModel Then
gm = FpSpread1.ActiveSheetView.DataModel
Dim i As Integer
i = gm.RowCount
String msg = i.ToString()
Response.Write("alert('" & 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.