Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.Model Namespace / GroupingPolicy Enumeration
Example Example

In This Topic
    GroupingPolicy Enumeration
    In This Topic
    Specifies a grouping policy to collapse or expand rows when grouping occurs in the Spread component.
    Public Enum GroupingPolicy 
       Inherits System.Enum
    Dim instance As GroupingPolicy
    public enum GroupingPolicy : System.Enum 
    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.
    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


    See Also