ComponentOne GanttView for WinForms
Working with GanttView / Task Elements / Task Deadline
In This Topic
    Task Deadline
    In This Topic

    GanttView allows you to define the deadline of a task, which indicates the time by which a task must be completed. To specify the task deadline, you can use the Deadline property of the Task class.

    If your Finish date time exceeds your Deadline date time, a red indicator will appear next to the task number like the following:

    Displays the red indicator that appears when a task exceeds its deadline.

    Below code snippet shows how you can set the deadline of a task in GanttView.

    C#
    Copy Code
    //Set the deadline of a task
    Task1.Deadline = new DateTime(2021, 06, 7);