
Preserving column widths in Listview
I have a listview control that allows sorting of detail items when any
column is clicked. However, after the sort, any columns that had been
manually resized revert to their original widths. Is there a painless way
to keep this from happening? The only way I can think of is to save the
widths in an array, do the sort, then use the array contents to reset the
width property (all of this in the ColumnClick event)... which seems
excessive.
-----
Tim Thornton
College Station, Texas, USA