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

Image on DataGrid Column Header along with the sort arrow

4 Answers 158 Views
GridView
This is a migrated thread and some comments may be shown as answers.
swati
Top achievements
Rank 1
swati asked on 28 May 2011, 09:11 AM
Hi all

I need to display an inage on column header of a data grid along with the sort arrow.
How can i acieve this in WPF

4 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 28 May 2011, 09:16 AM
Hello Swati,

 

I have already replied in the following forum thread. 

Greetings,
Vanya Pavlova
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
swati
Top achievements
Rank 1
answered on 28 May 2011, 09:26 AM
Yaa but I need an image on a column header.Could u plz share some peace of code.It would be more helpfull
0
Vanya Pavlova
Telerik team
answered on 28 May 2011, 09:30 AM
Hello swati,


The Header of each column is of type object and you may predefine it in the way you need:

<telerik:GridViewColumn.Header>
                   <Image Source="Image1.png"/>
               </telerik:GridViewColumn.Header>


Please refer to our online documentation for further info.


Regards,
Vanya Pavlova
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
swati
Top achievements
Rank 1
answered on 28 May 2011, 10:29 AM
thanks

I need numbers to be displayed with respect to the order in which user had clicked on header to sort data,
like if want to sort the "Name" column first and then the "Address" column then the column header should display number "1" on "Name" column and number "2" on "Address" column.......plz share if u have some code
Tags
GridView
Asked by
swati
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
swati
Top achievements
Rank 1
Share this question
or