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

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.
 

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

Top