Spread for ASP.NET 11 Product Documentation
GetGroupInfo(Group) Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : GetGroupInfo(Group) Method
Group object
Gets the group information for the sheet.
Syntax
'Declaration
 
Public Function GetGroupInfo( _
   ByVal g As Group _
) As GroupInfo
'Usage
 
Dim instance As SheetView
Dim g As Group
Dim value As GroupInfo
 
value = instance.GetGroupInfo(g)
public GroupInfo GetGroupInfo( 
   Group g
)

Parameters

g
Group object
Example
This example uses the GetGroupInfo method.
FarPoint.Web.Spread.Model.GroupDataModel gm = new FarPoint.Web.Spread.Model.GroupDataModel(FpSpread1.ActiveSheetView.DataModel);
FarPoint.Web.Spread.SortInfo[] sort = new FarPoint.Web.Spread.SortInfo[1];
sort[0] = new FarPoint.Web.Spread.SortInfo(0, true);
gm.Group(sort, System.Collections.Comparer.Default);
FpSpread1.ActiveSheetView.DataModel = gm;
FarPoint.Web.Spread.Model.Group dg = new FarPoint.Web.Spread.Model.Group(gm, (FarPoint.Web.Spread.Model.Group)gm.Groups[0], 0, true);
TextBox1.Text = FpSpread1.ActiveSheetView.GetGroupInfo(dg).BackColor.ToString();
Dim gm As New FarPoint.Web.Spread.Model.GroupDataModel(FpSpread1.ActiveSheetView.DataModel)
Dim sort(0) As FarPoint.Web.Spread.SortInfo
sort(0) = New FarPoint.Web.Spread.SortInfo(0, True)
gm.Group(sort)
FpSpread1.ActiveSheetView.DataModel = gm
Dim dg As New FarPoint.Web.Spread.Model.Group(gm, gm.Groups(0), 0, True)
TextBox1.Text = FpSpread1.ActiveSheetView.GetGroupInfo(dg).BackColor.ToString()
See Also

Reference

SheetView Class
SheetView Members