Articles in this section
Category / Section

How to view the Gantt control with the desired date tasks at load time in WPF

1 min read

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

 

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

 

View the sample in GitHub.

 

See also

 

How To add custom tooltip to Gantt

 

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

 

How To differentiate the dates of holidays

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please sign in to leave a comment
Access denied
Access denied