[]
        
(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, toolbar, today line, and much more.

The following sections discuss how to set visibility of these elements.

Hide Nonworking-Time

By default, the Nonworking-Time line is visible. However, you can choose to hide the nonworking-time line by setting ShowNonworkingTime property of the C1GanttView class to false as demonstrated in the following code.

gv.ShowNonworkingTime = false;

Hide Today's Date

You can choose to hide today's date in the GanttView by setting ShowToday property of the C1GanttView class to false.

The following code hides today's date in GanttView.

gv.ShowToday = false;

Hide Toolbar

By default, a toolbar is displayed at the top which provides easy access to various operations. However, there might be a case where you do not want to display toolbar to restrict end users to perform some functionality. To do so, you can set ShowToolbar property of the C1GanttView class to false as demonstrated in the following code.

gv.ShowToolbar = false;