/To-view-current-date-tasks-in-Gantt-control

This article explains about how to view current date tasks in Gantt contol at initial loading time in WPF

Primary LanguageC#

To-view-current-date-tasks-in-Gantt-control

Description

This article explains how to view the current date tasks in Gantt control at initial loading time.

Solution

This requirement can be achieved by passing the current date value as a parameter to the ScrollGanttChartTo method.

The following code sample illustrates how to navigate the Gantt chart to the current date.

[C#]

private void Gantt_OnLoaded(object sender, RoutedEventArgs e)
{
       //Scroll a Gantt chart to the date
       Gantt.ScrollGanttChartTo(DateTime.Now);
}

KB article - To-view-current-date-tasks-in-Gantt-control

See also

To add custom tooltip to gantt

To define your own schedule for Gantt to track the progress of projects

To differentiate the dates of holidays