Spread Windows Forms 12.0 Product Documentation
GroupingPolicy Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GroupingPolicy Property
Gets or sets grouping policy to collapse or expand rows when grouping occurs.
Syntax
'Declaration
 
Public Property GroupingPolicy As GroupingPolicy
'Usage
 
Dim instance As SheetView
Dim value As GroupingPolicy
 
instance.GroupingPolicy = value
 
value = instance.GroupingPolicy
public GroupingPolicy GroupingPolicy {get; set;}
Remarks
The GroupingPolicy property only applies to new groups.
Example
This example sets the GroupingPolicy property.
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
See Also

Reference

SheetView Class
SheetView Members