I have a virtual listview with 12 columns
I create the columns with LVCF_ORDER and the position in iOrder

But the order of the columns is not the order i want.

In this table the first column is the index value of column, the second is the iOrder value and third is the real position



0 11 1
1 10 3
2 9 5
3 8 7
4 7 9
5 6 11
6 5 10
7 4 8
8 3 6
9 2 4
10 1 2
11 0 0


Why????? :evil: :evil:
Posted on 2004-09-13 08:35:59 by greenant
Beware there are two column orders, the visual order (you can drag and drop the column headers to change it) and the subitem index (can't be changed by the user). This is common to all listview controls, not just the virtual ones. Does that help?
Posted on 2004-09-13 15:40:45 by QvasiModo
the first column in my table is the subitem order (LVCOLUMN.index), the second column is the visual order (LVCOLUMN.iOrder).
The problem is that the real visual order is different from the visual order I set
Posted on 2004-09-13 15:57:18 by greenant
Oh, sorry, I didn't get it at first :(

I have no idea then. MSDN says nothing about incompatible behavior in LVM_INSERTCOLUMN. Perhaps you could try using a notmal listview just as a test, if the problem persists it's in the code, not the control.
Posted on 2004-09-13 17:11:45 by QvasiModo