Skip to main content
All docs
V24.1

GanttControlOptionsBehavior.ConstraintMode Property

Gets or sets whether the control automatically applies the Start No Earlier Than constraint to a task if you change its start date and the Finish No Earlier Than constraint if you change its finish date.

Namespace: DevExpress.XtraGantt.Options

Assembly: DevExpress.XtraGantt.v24.1.dll

NuGet Package: DevExpress.Win.Gantt

Declaration

[DefaultValue(ConstraintMode.Default)]
[XtraSerializableProperty]
public ConstraintMode ConstraintMode { get; set; }

Property Value

Type Default Description
ConstraintMode Default

Default or Auto if the control automatically applies constraints to tasks; otherwise, Manual.

Available values:

Name Description
Default

The mode is not specified explicitly. Enables Auto mode.

Auto

The control automatically applies the Start No Earlier Than constraint to a task if you change its start date and the Finish No Earlier Than constraint if you change its finish date.

Manual

The control does not automatically apply a constraint if you change a task’s start or finish date.

Property Paths

You can access this nested property as listed below:

Object Type Path to ConstraintMode
GanttControl
.OptionsBehavior .ConstraintMode
See Also