# Column Header Template

Bound columns render the name of the field or their `Title` in their header. Through the `HeaderTemplate`, you can define custom content there instead of the title text.

> caption Sample Header Template

<demo metaUrl="client/treelist/templates/column-header/example-1/" height="720"></demo>

> note Header Templates are not available for the `TreeListCheckboxColumn` and the `TreeListCommandColumn`.

> note If you need to use block elements in the header templates, keep in mind that they will push the sort indicator out of its expected position. If you cannot avoid block elements (such as in the Name column above), add a CSS rule like the ones below to adjust the sort indicator.

> caption Sort indicator adjustments when block elements are in the header template

```CSS
.k-treelist th.k-header .k-icon.k-i-sort-asc-sm,
.k-treelist th.k-header .k-icon.k-i-sort-desc-sm {
    position: absolute;
    right: 0;
    top: 8px;
}

/* OR */

.k-treelist-header .k-header > .k-link {
    padding-right: 1.5em;
}

    .k-treelist-header .k-header > .k-link > .k-icon {
        position: absolute;
        top: 50%;
        right: 0.5em;
        transform: translateY(-50%);
        margin-left: 0;
    }

.k-treelist-header .k-sort-order {
    position: absolute;
    right: 0.25em;
}
```

## See Also

* [Live Demo: TreeList Templates](https://demos.telerik.com/blazor-ui/treelist/templates)
