# Column Templates

The Kendo UI for Angular Gantt provides templates for customizing the header and data cells of its TreeList section.

## Header Template

You can use the header template to customize the header cell of each column or to format the data displayed by the header cell. For more information on how to define the header template, refer to the [`HeaderTemplateDirective`](https://www.telerik.com/kendo-angular-ui/components/gantt/api/headertemplatedirective) API documentation.

> To style the header cell of the TreeList column, use the [`headerStyle`](https://www.telerik.com/kendo-angular-ui/components/gantt/api/ganttcolumncomponent#headerstyle) option. The styles you set through `headerStyle` are applied to the header cell only.

The following example demonstrates how to use the `HeaderTemplateDirective` to customize the header cells of the Gantt's TreeList columns.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/gantt/columns/templates/header/source.txt)

## Cell Template

You can use the cell template to customize the content of the table cells (excluding the header and footer) or to format the data displayed by the table cells. For more information on how to define the cell template, refer to the [`CellTemplateDirective`](https://www.telerik.com/kendo-angular-ui/components/gantt/api/celltemplatedirective) API documentation.

> To style the table cells of the TreeList column, use the [`style`](https://www.telerik.com/kendo-angular-ui/components/gantt/api/ganttcolumncomponent#style) option. The styles you set through `style` are applied to the table cells only.

The following example demonstrates how to use the `CellTemplateDirective` to customize the data cells in the Gantt's TreeList section.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/gantt/columns/templates/cell/source.txt)

## Suggested Links

* [HeaderTemplateDirective](https://www.telerik.com/kendo-angular-ui/components/gantt/api/headertemplatedirective)
* [CellTemplateDirective](https://www.telerik.com/kendo-angular-ui/components/gantt/api/celltemplatedirective)
* [ColumnComponent](https://www.telerik.com/kendo-angular-ui/components/gantt/api/ganttcolumncomponent)
* [API Reference of the GanttComponent](https://www.telerik.com/kendo-angular-ui/components/gantt/api/ganttcomponent)
* [API Index of the Gantt](https://www.telerik.com/kendo-angular-ui/components/gantt/api)
