ListView's AllowColumnReorder property BUG

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

Guest

When we set AllowColumnReorder to true and drag column headers to reorder columns, the ListView.Columns collection remains unchanged (i.e. the indexes of the column headers do not change)

Is this a bug or am I something missing?
 
I would say that this is by design. The index of a column shouldn't change
just because
you're draging it to another position. To get the order in which the columns
are shown
you can use P/Invoke and send a LVM_GETCOLUMNORDERARRAY message
to the listview

/claes

Kimon Ifantidis said:
When we set AllowColumnReorder to true and drag column headers to reorder
columns, the ListView.Columns collection remains unchanged (i.e. the indexes
of the column headers do not change).
 
Back
Top