Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
775
Best place to handle sorting arrow images on column headers
posted

Hi Mike,

In our application we are using custom images to show on column headers for sorting.  The images are based on your standard sorting arrows. We have several images for several different column sort states. For example:

1) We have an image for a column that is sortable but not yet sorted by the user.

2) We have an image for a column that is sortable and is sorted ascending by the user.

3) We have an image for a column that is sortable  and is sorted descending by the user.

The question I have is, where is the best place to put the code to handle these different image displays. We are thinking that it's in the InitializeLayout handler. Can you confirm? And if it's not, could you suggest a better place.

Thank you,

Steve

  • 469350
    Suggested Answer
    Offline posted

    Hi Steve,

    Well, I guess the initial image could be applied in the InitializeLayout event. After that, you would want to change the image in the AfterSortChanged event, I think.