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

[Solved] Column header template for each column

1 Answer 366 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Artem
Top achievements
Rank 1
Artem asked on 28 Jun 2011, 03:45 PM
Hi.
Please help me. I want add to each column header picture(not text). For each column different picture. 
for example column1 header have picture1
column2 header have picture2

But I don't know how can I do this.

Thanks and regards.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 28 Jun 2011, 03:58 PM
Hi sharp,

Generally, the Header of each column is of type object and you may define the element you want inside:

<telerik:GridViewDataColumn>
     <telerik:GridViewDataColumn.Header>
            <telerik:RadButton Content="ClickMe"/>
     <telerik:GridViewDataColumn.Header>
<telerik:GridViewDataColumn>

In this case a button is defined, but you may display the required image as well.
 

Best wishes,
Maya
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
Tags
GridView
Asked by
Artem
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or