Skip to main content
A newer version of this page is available. .

TasksScheduledEventArgs.InvalidPredecessorLinks Property

Gets a collection of predecessor links that became invalid after scheduling.

Namespace: DevExpress.Xpf.Gantt

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

Declaration

Property Value

Type Description
ReadOnlyCollection<Object>

A collection of invalid predecessor links.

Remarks

The InvalidPredecessorLinks property does not return any invalid links if the link validation is disabled (the AllowValidatePredecessorLinks is set to false).

You can rollback the edit changes if they have become the reason for invalid links.

<dxgn:GanttControl ...>
    <dxgn:GanttControl.View>
        <dxgn:GanttView ... 
            TasksScheduled="GanttView_TasksScheduled">
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>
private void GanttView_TasksScheduled(object sender, DevExpress.Xpf.Gantt.TasksScheduledEventArgs e) {
    if (e.InvalidPredecessorLinks.Count > 0) e.RollbackChanges = true;
}
See Also