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


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

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

#See also