Refer to image button in header of datagrid

M

Morten Snedker

I have a datagrid with multiple columns.

Clicking one column header makes it sort. Clicking again makes a
reverse sorting.

But also I want to show the correct little image in the header,
depending on the column clicked.

I can find out how to catch the column clicked, but how do i refer to
the image and its behaviour? I have two gifs on each column header -
one for ascending and one for descending...?

Help is greatly appreciated.


Regards /Snedker
 
E

Eliyahu Goldin

You need to make a HeaderTemplate with an image control that you will set to
one of two gifs programmatically.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top