All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Critical Path

The GanttControl can highlight critical paths — sequences of dependent tasks that affect a project's start or finish date. Use the CriticalPathHighlightMode option to specify how to highlight critical paths:

  • Single — The control highlights the longest sequence of dependent tasks that affect the project's start or finish date.

  • Multiple — The control highlights all sequences of dependent tasks that affect the project's start or finish date.

TIP

To see an example of a critical path, run the following demo: Code Examples - Critical Path.

Critical Path Appearance

The default highlight color depends on the applied skin. You can use the Appearance collection's CriticalPathTask and CriticalPathDependency properties to specify colors for tasks and dependency lines in critical paths.

using DevExpress.LookAndFeel;
using DevExpress.XtraGantt;

ganttControl.OptionsView.CriticalPathHighlightMode = CriticalPathHighlightMode.Single;
ganttControl.Appearance.CriticalPathTask.BackColor = DXSkinColors.FillColors.Danger;
ganttControl.Appearance.CriticalPathDependency.BackColor = DXSkinColors.FillColors.Danger;