Spread Windows Forms 6.0 Product Documentation
GroupingPolicy Enumeration
Example  See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.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 will collapse all rows when grouping occurs.
ExpandAllSpread will expand all rows when grouping occurs.
ExpandParentsSpread will expand all parent rows and collapse just the lowest level when grouping occurs.
NotSetDoes not set the GroupingPolicy,this is the default setting for the GroupingPolicy.

Example

This example sets the GroupingPolicy enumeration.
C#Copy Code
fpSpread1.AllowColumnMove = true;
fpSpread1.Sheets[0].GroupBarInfo.Visible = true;
fpSpread1.Sheets[0].AllowGroup = true;
fpSpread1.Sheets(0).GroupingPolicy = FarPoint.Win.Spread.Model.GroupingPolicy.CollapseAll;
Visual BasicCopy Code
FpSpread1.AllowColumnMove = True
FpSpread1.Sheets(0).GroupBarInfo.Visible = True
FpSpread1.Sheets(0).AllowGroup = True
FpSpread1.Sheets(0).GroupingPolicy = FarPoint.Win.Spread.Model.GroupingPolicy.CollapseAll

Inheritance Hierarchy

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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.