By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,238 Members | 1,837 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,238 IT Pros & Developers. It's quick & easy.

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

P: n/a
Hi All!

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, the sorting works fine without
column-re-ordering?

Some info:

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

TIA

Per Rollvang

Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.