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
920
HOWTO Show sort indicator on column header cliecked when sorting by another column
posted

Hi

I have a listview with three columns - the main column and two sub item columns.  I click the header of column 2 but use column 3 to sort the listview.  I'm having an issue setting the sort indicator on the column clicked.

Is there a way to do this.

Any help greatly appreciated.

Regards

James O'Doherty

Solutions Architect

Parents
No Data
Reply
  • 6120
    Verified Answer
    Offline posted

    Hello James,

    It is possible to do custom sorting in ListView using a SortComparer. For example, by writing a SortComparer to sort column3 and by calling it when clicked on column2 header you can achieve this. You can use the sample at the below link as a reference to implement the required custom sort comparer:

    https://www.infragistics.com/community/forums/t/61049.aspx

     Please let me know if I may be of further assistance.

    Sincerely,
    Sahaja Kokkalagadda
    Associate Software Developer

Children
No Data