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

GridTemplateColumn Styling Issue

1 Answer 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 12 Mar 2013, 04:54 PM
I add a GridTemplateColumn to my grid and set the text of the header but the style of that text is different than the other columns.

Anyone else run into this problem?  Ia m not doing anything fancy and I am not styling the other columns, just assigning a skin.

<telerik:GridTemplateColumn UniqueName="chkDelete" HeaderText="Delete" HeaderTooltip="Delete">
  <ItemTemplate>
    <asp:CheckBox ID="chkItemDelete" runat="server" />
  </ItemTemplate>
  <HeaderStyle  HorizontalAlign="Center" Width="50px" />
  <ItemStyle />
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="From_Name" HeaderText="Origin" UniqueName="From_Name"
  HeaderTooltip="Sort By Origin">
  <ItemStyle HorizontalAlign="Left" />
  <HeaderStyle HorizontalAlign="Left" Width="150px" />
</telerik:GridBoundColumn>

1 Answer, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 12 Mar 2013, 05:47 PM
I found the issue.  It was due to sorting being enabled and the styling of the links for the sort were overriding the style of the text for the header.
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Share this question
or