Spread for ASP.NET 7.0 Product Documentation
GroupingPolicy Enumeration
Example  See Also  Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace : GroupingPolicy Enumeration


Glossary Item Box

Specifies a grouping policy to collapse or expand rows when grouping occurs in the Spread component.

Syntax

Visual Basic (Declaration) 
Public Enum GroupingPolicy 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As GroupingPolicy
C# 
public enum GroupingPolicy : System.Enum 

Members

MemberDescription
CollapseAllSpread collapses all rows when the grouping action occurs.
ExpandAllSpread expands all rows when the grouping action occurs.
ExpandParentsSpread expands all parent rows and collapses just the lowest level when grouping occurs.
NotSetDoes not set the grouping policy, this is the default setting for the GroupingPolicy property.

Example

This example sets the GroupingPolicy enumeration.
C#Copy Code
FpSpread1.ActiveSheetView.AllowColumnMove = true; 
FpSpread1.ActiveSheetView.GroupBarVisible = true; 
FpSpread1.ActiveSheetView.AllowGroup = true;
FpSpread1.ActiveSheetView.GroupingPolicy = FarPoint.Web.Spread.Model.GroupingPolicy.ExpandAll;
VB.NETCopy Code
FpSpread1.ActiveSheetView.AllowColumnMove = True
FpSpread1.ActiveSheetView.GroupBarVisible = True
FpSpread1.ActiveSheetView.AllowGroup = True
FpSpread1.ActiveSheetView.GroupingPolicy = FarPoint.Web.Spread.Model.GroupingPolicy.ExpandAll

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Web.Spread.Model.GroupingPolicy

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.