Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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