# Border Color

## Content



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.](https://cdn.mescius.io/document-site-files/images/7e40233e-00f6-4cd8-af13-0764ef4e9235/images/bordercolorganttview.png)

### Customize Grid Border

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

```csharp
//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.

```csharp
//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.

```csharp
//Set the border color of the fixed cells
c1GanttView1.FixedCellBorderColor= Color.Green;
```