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.
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.
C# |
Copy Code
|
---|---|
gv.ShowNonworkingTime = false;
|
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.
C# |
Copy Code
|
---|---|
gv.ShowToday = false;
|
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.
C# |
Copy Code
|
---|---|
gv.ShowToolbar = false;
|