Spread Windows Forms 9.0 Product Documentation
GroupingPolicy Enumeration
Example Example 


Specifies a grouping policy to collapse or expand rows when grouping occurs in the Spread component.
Syntax
'Declaration
 
Public Enum GroupingPolicy 
   Inherits System.Enum
'Usage
 
Dim instance As GroupingPolicy
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.
fpSpread1.AllowColumnMove = true;
fpSpread1.Sheets[0].GroupBarInfo.Visible = true;
fpSpread1.Sheets[0].AllowGroup = true;
fpSpread1.Sheets[0].GroupingPolicy = FarPoint.Win.Spread.Model.GroupingPolicy.CollapseAll;
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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

FarPoint.Win.Spread.Model Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.