This is a migrated thread and some comments may be shown as answers.

Multiple Row Header

5 Answers 199 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ujjwal Lahoti
Top achievements
Rank 1
Ujjwal Lahoti asked on 28 Apr 2010, 05:40 PM
I have a long header for my column, I want to allow the header to span more than one row. Essentially I want to be able Text Wrap the header. Setting: TextWrapping="Wrap", in GridViewDataColumn declaration doesn't appear to work.

Sorry the title of the post should be Multi Line Row Headers. Can't figure out a way to change the port title. Sorry for the confusion.

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 29 Apr 2010, 07:37 AM
Hello,

This property is related to the column data cells. Here is an example how to achieve this for the column header:

<telerik:GridViewDataColumn DataMemberBinding="{Binding YourProperty}" Width="100">
   <telerik:GridViewDataColumn.Header>
        <TextBlock Text="Your long text" TextWrapping="Wrap"  />
  </telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>

Best wishes,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Sivakumar
Top achievements
Rank 1
answered on 01 Oct 2013, 01:42 PM
Hi,

I am using Rad Controls for WPF Q2 of 2013, Also I am new to Telerik.

I would like to create 2 rows for a single record in the telerik rad grid view as attached. Is it possible to do the template in the XAML code itself ?

With Regards.
Siva

0
Zlatko
Top achievements
Rank 1
answered on 10 Sep 2018, 07:45 AM
TextBlock as Header have a problem with Background color when Sorting column.
0
Zlatko
Top achievements
Rank 1
answered on 10 Sep 2018, 09:19 AM

OMG: https://docs.telerik.com/devtools/wpf/controls/radgridview/troubleshooting/styling-custom-header

 

0
Dilyan Traykov
Telerik team
answered on 12 Sep 2018, 11:43 AM
Hello Zlatko,

Based on your last message I assume that you've found a solution to your issue by using the approach suggested in the referenced article.

If that is not the case, please further clarify what the exact problem with the header background is and I will happily assist you further.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Ujjwal Lahoti
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Sivakumar
Top achievements
Rank 1
Zlatko
Top achievements
Rank 1
Dilyan Traykov
Telerik team
Share this question
or