Edit this page

Wrap the text in the column header

This article shows how you can wrap the text of the column header, i.e. to have a multi-line text in the header. The end result will look like this:

We will take advantage of the fact that the Header property of the GridView column is of type Object so we can put everything in it. In this case this would be a TextBlock which has a convenient property TextWrapping

XAML

<telerik:GridViewDataColumn DataMemberBinding="{Binding Established}" 
                            DataFormatString="{}{0:yyyy}"
                            Width="100" >
    <telerik:GridViewDataColumn.Header>
        <TextBlock Text="Stadium Established Date" TextWrapping="Wrap" />
    </telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>

That is it, now you have a multi-line header.

#See also