ComponentOne GanttView for WinForms
Appearance and Styling / Border Color
In This Topic
    Border Color
    In This Topic

    GanttView lets you customize the border of the entire grid as well as individual cells by changing border style, color, and so on.

    Displays customized grid borders in the GanttView.

    Customize Grid Border

    You can use the BorderStyle property which takes BorderStyle enumeration as an input to set the border style of the grid.
    Below code snippet shows how you can customize the border style of the entire grid.

    C#
    Copy Code
    //Set the border style of the grid
    c1GanttView1.BorderStyle= BorderStyle.FixedSingle;
    

    Customize Cell Border

    To customize the border color of all the cells in the grid, you can use the CellBorderColor property of the C1GanttView class.

    Below code snippet shows how you can customize the border color of the cells in the GanttView control.

    C#
    Copy Code
    //Set the border color of cells
    c1GanttView1.CellBorderColor= Color.Blue;
    

    Customize Fixed Cell Border Color

    Fixed cells refer to those cells which appear in the top row and the left-most column of the grid. You can customize the border color of these fixed cells by using the FixedCellBorderColor property of the C1GanttView class.

    Below code snippet shows how you can customize the border color of the fixed cells in the GanttView control.

    C#
    Copy Code
    //Set the border color of the fixed cells
    c1GanttView1.FixedCellBorderColor= Color.Green;