Spread for ASP.NET 7.0 Product Documentation
GroupingPolicy Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : GroupingPolicy Property


Glossary Item Box

Gets or sets grouping policy to collapse or expand rows when grouping occurs.

Syntax

Visual Basic (Declaration) 
Public Property GroupingPolicy As GroupingPolicy
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As GroupingPolicy
 
instance.GroupingPolicy = value
 
value = instance.GroupingPolicy
C# 
public GroupingPolicy GroupingPolicy {get; set;}

Example

This example sets the GroupingPolicy property.
C#Copy Code
FpSpread1.ActiveSheetView.AllowColumnMove = true; 
FpSpread1.ActiveSheetView.GroupBarVisible = true; 
FpSpread1.ActiveSheetView.AllowGroup = true;
FpSpread1.ActiveSheetView.GroupingPolicy = FarPoint.Web.Spread.Model.GroupingPolicy.ExpandAll;
VB.NETCopy Code
FpSpread1.ActiveSheetView.AllowColumnMove = True
FpSpread1.ActiveSheetView.GroupBarVisible = True
FpSpread1.ActiveSheetView.AllowGroup = True
FpSpread1.ActiveSheetView.GroupingPolicy = FarPoint.Web.Spread.Model.GroupingPolicy.ExpandAll

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.