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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top