FlexReport for WinForms | ComponentOne
C1.Win.FlexReport.4.5.2 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.

In This Topic
    Add Method (GroupCollection)
    In This Topic
    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 String, _
       ByVal groupBy As String, _
       ByVal sort As SortEnum _
    ) As Group
    public Group Add( 
       string name,
       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