Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.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 
    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.
    This example sets the GroupingPolicy enumeration.
    FpSpread1.ActiveSheetView.AllowColumnMove = true; 
    FpSpread1.ActiveSheetView.GroupBarVisible = true; 
    FpSpread1.ActiveSheetView.AllowGroup = true;
    FpSpread1.ActiveSheetView.GroupingPolicy = FarPoint.Web.Spread.Model.GroupingPolicy.ExpandAll;
    FpSpread1.ActiveSheetView.AllowColumnMove = True
    FpSpread1.ActiveSheetView.GroupBarVisible = True
    FpSpread1.ActiveSheetView.AllowGroup = True
    FpSpread1.ActiveSheetView.GroupingPolicy = FarPoint.Web.Spread.Model.GroupingPolicy.ExpandAll
    Inheritance Hierarchy


    See Also