ComponentOne FlexReport for WinForms
Add Method (GroupCollection)

C1.Win.FlexReport.4 Assembly > C1.Win.FlexReport Namespace > GroupCollection Class : Add Method
Contains the name of the new group.
Contains the value of the GroupBy property for the new group.
Contains the value of the Group.Sort property for the new group.
Adds a new Group to the collection, along with header and footer sections for the new group.
Syntax
'Declaration
 
Public Function Add( _
   ByVal name As System.String, _
   ByVal groupBy As System.String, _
   ByVal sort As SortEnum _
) As Group
public Group Add( 
   System.string name,
   System.string groupBy,
   SortEnum sort
)

Parameters

name
Contains the name of the new group.
groupBy
Contains the value of the GroupBy property for the new group.
sort
Contains the value of the Group.Sort property for the new group.

Return Value

A reference to the newly added group.
Remarks
When a group is added to a report, the control automatically adds two new sections, the group header and group footer sections for the new group. These new sections are invisible by default.
See Also

Reference

GroupCollection Class
GroupCollection Members