Ganttview Add summary task in VB

Posted by: jay on 11 October 2020, 1:43 am EST

    • Post Options:
    • Link

    Posted 11 October 2020, 1:43 am EST

    I’ve been able to create a new task from code behind no problem but am unable to create a summary task. If I try and set summary equal to true I get an error indicating Set is private so I cannot use it. Is there another way aside from adding the items directly to the SQL database?

      Dim t As Task = New Task()
      tasks.Add(t)
      t.Mode = TaskMode.Automatic
      t.Name = "New Task"
    

    Thanks,

    Jason

  • Posted 12 October 2020, 4:25 am EST

    Hi Jason,

    You can set the OutlineParent property of the Task to C1GanttView1.ProjectSummary to make it a Summary task.

    Please find the attached sample implementing the same.

    Regards,

    Prabhat Sharma.GanttViewSummaryVb.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels