Spread for ASP.NET 7.0 Product Documentation
ColumnCount Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > GroupDataModel Class : ColumnCount Property


Glossary Item Box

Gets the number of columns in the group.

Syntax

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

Property Value

Integer number of columns

Example

This example returns the column 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.ColumnCount();
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.ColumnCount
String msg = i.ToString()
Response.Write("alert('" & msg & "')")
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.