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

Correct Header does not display for GridViewDataColumn

1 Answer 20 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Quin
Top achievements
Rank 1
Quin asked on 08 Oct 2012, 06:24 PM
When I set the Header in my GridViewDataColumn it is ignored and the UniqueName displays as the Header.  If I use a GridViewColumn the Header displays.  Why would headers work for GridViewColumns but not GridViewDataColumns?  For my implementation I need to be able to use GridViewDataColumns.  

This works.  The header is displayed as "TestHeader":
<telerik:GridViewColumn UniqueName="LinkColumn">
     <telerik:GridViewColumn.Header>
          <TextBlock Text="TestHeader" />
     </telerik:GridViewColumn.Header>
</telerik:GridViewColumn>

This does not work.  The header switches to "LinkColumn" once the data is bound to the grid:
<telerik:GridViewDataColumn UniqueName="LinkColumn" DataMemberBinding="{Binding MasterHyperlinkColumn}" >
     <telerik:GridViewDataColumn.Header>
    <TextBlock Text="TestHeader" />
     </telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 09 Oct 2012, 05:41 AM
Hello,

 I have tested this behaviour with the latest version (Q2 2012 SP2) and I did not encounter any problem. Please try with the latest binaries. 

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Quin
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or