[]
        
(Showing Draft Content)

Optional Elements

GanttView enables you to control the visibility of certain elements. You can determine whether or not to show the nonworking time, highlight start and finish dates, highlight today’s date, and show the C1GanttView toolbar.

Show Nonworking-Time

You can set the ShowNonworkingTime property of the C1GanttView class to true to show the Nonworking-Time.

Use the below code snippet to show the nonworking-time in the GanttView.

//Show nonworking-time
c1GanttView1.ShowNonworkingTime = true;

Show Start and Finish Date

To show the Start and Finish date, you can set the ShowStartFinish property of the C1GanttView class to true.

Below code snippet shows how you can show start and finish date in your project.

//Show start and finish date
c1GanttView1.ShowStartFinish = true;

Show Today's Date

To hide today's date, set the ShowToday property of the C1GanttView class to false.

Use the below code snippet to hide the today's date in your project.

//Show today's date in the project
c1GanttView1.ShowToday = true;

Show Toolbar

With GanttView, you can control the visibility of the C1GanttView toolbar by using the ShowStartFinish property of the C1GanttView class.Below code snippet shows how you can hide toolbar in your project.

//Hide toolbar
c1GanttView1.ShowToolbar = false;