ListView, IComparer & column-re-ordering...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All!

This question has been posted before, but unfortunatly I was unable to get
an answer.

I use a special ListViewItemComparer-class to sort items in a listview for
any column, and I have also allowed column-reordering.

So far so good, but if I click the columnheader of any column, and the
columnorder is not 'default', the listview 'forget' my column-re-ordering
(i.e 0 2 1), and sets column-order back to default (i.e. 0 1 2).

Is there anyone that might know what I have forgot to code in my
ListViewItemComparer-class?

Some info:

- I use VS 2003, framework 1.1
- I use SendMessage with LVM_SETCOLUMNORDERARRAY to set the columnorder at
startup.
 
Back
Top