All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
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.

GanttView.QueryKeepTasksLinked Event

Occurs each time the task hierarchy and order is changed and allows you to keep two tasks linked even if they organize a cyclic task connection or a child task links to its summary task. This is a routed event.

Namespace: DevExpress.Xpf.Gantt

Assembly: DevExpress.Xpf.Gantt.v20.1.dll

Declaration

public event EventHandler<QueryKeepTasksLinkedEventArgs> QueryKeepTasksLinked
Public Event QueryKeepTasksLinked As EventHandler(Of QueryKeepTasksLinkedEventArgs)

Event Data

The QueryKeepTasksLinked event's data class is DevExpress.Xpf.Gantt.QueryKeepTasksLinkedEventArgs.

Remarks

In versions prior to v19.2, changing Gantt tasks' order or hierarchy might lead to the following:

  • an existing link between tasks connects a summary task and one of its child tasks
  • an existing link causes a cyclic connection between the tasks

If these links were not deleted, the scheduling and critical path calculation features did not work.

Starting with v19.2, these links are deleted automatically. You can keep them by handling the QueryKeepTasksLinked event:

gantt.View.QueryKeepTasksLinked += (sender, e) => e.KeepLinked = true; 

Use the QueryAllowPredecessorLinkEdit event to create custom rules and limitations for task connectors.

See Also