GanttView lets you customize the back color of highlighted cells, fixed cells, and toolbar. This section discusses how you can set the back color of various elements in the Ganttview.
Fixed cells appear in the top row and the left-most column of the grid. To set the back color of these fixed cells, you can use the FixedBackColor property of the C1GanttView class.
Below code snippet shows how you can set the back color of the fixed cells in the GanttView control.
C# |
Copy Code
|
---|---|
//Set the back color of fixed cells
c1GanttView1.FixedBackColor= Color.LavenderBlush;
|
C1GanttView Toolbar appears at the top of the GanttView control when the ShowToolbar property of the C1GanttView class is set to True. You can customize the back color of the toolbar by using the ToolbarBackColor property of the C1GanttView class.
Below code snippet shows how you can set the back color of the toolbar in the GanttView control.
C# |
Copy Code
|
---|---|
//Set the back color of the toolbar
c1Ganttview1.ToolbarBackColor = Color.LightGray;
|
GanttView enables you to change the back color of the highlighted cells. You can use the HighlightBackColor property of the Ganttview class to customize the back color of the highlighted cell.
Below code snippet shows how you can customize the back color of the highlighted cell in the GanttView.
C# |
Copy Code
|
---|---|
//Set back color of the highlighted cell
c1Ganttview1.HighlightBackColor = Color.Red;
|