Skip to main content

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

TasksScheduledEventArgs Class

Provides data for the TasksScheduled event.

Namespace: DevExpress.Xpf.Gantt

Assembly: DevExpress.Xpf.Gantt.v24.2.dll

NuGet Package: DevExpress.Wpf.Gantt

#Declaration

public sealed class TasksScheduledEventArgs :
    RoutedEventArgs

#Remarks

The TasksScheduled event allows you to rollback the edit changes if they have become the reason for invalid links.

Use the event arguments’ InvalidPredecessorLinks property to access a collection of invalid links. Set the event arguments’ RollbackChanges property to true to rollback the latest changes.

<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;
}

#Inheritance

Object
EventArgs
RoutedEventArgs
TasksScheduledEventArgs
See Also