# Set Back Color of Day

## Content



**GanttView** enables users to highlight a specific day of the week by setting its back color. For instance, the weekends in the GanttView view can be highlighted in a different color to distinguish them from workweek.

![Displays customized back color for selected day.](https://cdn.mescius.io/document-site-files/images/7e40233e-00f6-4cd8-af13-0764ef4e9235/images/setbackcolorofday.png)

You can subscribe to the **PaintDay** event of the **C1GanttView** class and set the **BackColor** property to customize the back color.<br />Below code snippet shows how you can set the BackColor of the day in the GanttView control.

```csharp
private void C1GanttView1_PaintDay(object sender, C1.Win.C1GanttView.PaintDayEventArgs e)
{
     if (e.Date.DayOfWeek == DayOfWeek.Saturday || e.Date.DayOfWeek == DayOfWeek.Sunday)
       {
            e.BackColor = Color.MistyRose;
       }
}
```