10 Answers, 1 is accepted
Please check this project for more info:
http://www.telerik.com/ClientsFiles/133336_217627-multi-line-column-header.zip
Kind regards,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.

This works:
<telerik:GridViewDataColumn.Header> <TextBlock TextAlignment="Center" Padding="0 3"> <TextBlock.Inlines> <Run>Component</Run> <LineBreak /> <Run>Hub</Run> <LineBreak /> <Run>Assembly</Run> </TextBlock.Inlines> </TextBlock> </telerik:GridViewDataColumn.Header>
But it's not very elegant. I suspect there's a better way.
Thanks
Could you please take a look at this blog post and let me know if that is what you are looking for.
Kind regards,
Milan
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

But what I'm actually looking for is a better way to handle the following scenario:
transform this
A very long multiple word column header
short item 1
short item 2
short item 3
into this
A very long
multiple word
column header
short item 1
short item 2
short item 3
And do this in a way that preserves the automatic column sizing capability. The technique I mentioned in the previous post works; but it's a bit of a hassle to declare the column headers.

I can suggest you to check this help article where you can find information about merged GridViewColumn's headers.
Yoan
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

protected void CompartmentsGrid_PreRender(object sender, EventArgs e)
{
GridHeaderItem header = (GridHeaderItem)CompartmentsGrid.MasterTableView.GetItems(GridItemType.Header)[0];
header[
"Number"].Wrap = true;
header[
"Number"].Width = Unit.Pixel(100);
}
Thanks for any help.
You can define GridViewDataColumn's header like so:
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Name}"
>
<
telerik:GridViewDataColumn.Header
>
<
TextBlock
Text
=
"this is very very very very very very very very very long text "
Width
=
"100"
TextWrapping
=
"Wrap"
/>
</
telerik:GridViewDataColumn.Header
>
</
telerik:GridViewDataColumn
>
I have prepared a sample project that shows you the approach. Please find it attached.
Yoan
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Am I missing something?
It seems that your are using the grid for ASP.NET. Please post your question in the relevant forum category!
Greetings,Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.