Spread Windows Forms 6.0 Product Documentation
GroupingPolicy Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.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;}

Remarks

The GroupingPolicy property only applies to new groups.

Example

This example sets the GroupingPolicy property.
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 BasicCopy 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;

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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