ComponentOne GanttView for WinForms
In This Topic
    Task Group
    In This Topic

    Grouping enables you to put data into groups wherein the elements share some common attributes. In GanttView, you can build an outline tree using the grouping feature where each group task is a summary task and all its children may have the same property values.

    Displays grouping feature in the GanttView.

    The following Group models are provided:

    Create Groups

    To implement the grouping feature, you can create a base group by using the BaseGroup class for the column according to which data is to be grouped. You can also select the type of group model to be created.

    Use the below code snippet to create a group.

    C#
    Copy Code
    BaseGroup baseGroup = new C1.Win.C1GanttView.DurationGroup(true); 
    c1GanttView1.Group(baseGroup); 
    c1GanttView1.GroupDefinition.MaintainHierarchy = true; 
    

    Create Advance Groups

    You can even create a group view that contains two layers of group, known as advance group.

    To create a Advance group, follow the steps below:

    See Also