| Visual Basic (Declaration) | |
|---|---|
Public Enum GroupingPolicy Inherits System.Enum | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As GroupingPolicy | |
| C# | |
|---|---|
public enum GroupingPolicy : System.Enum | |
| Member | Description |
|---|---|
| CollapseAll | Spread collapses all rows when the grouping action occurs. |
| ExpandAll | Spread expands all rows when the grouping action occurs. |
| ExpandParents | Spread expands all parent rows and collapses just the lowest level when grouping occurs. |
| NotSet | Does not set the grouping policy, this is the default setting for the GroupingPolicy property. |
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 Basic | 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 | |
System.Object
System.ValueType
System.Enum
FarPoint.Win.Spread.Model.GroupingPolicy
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8