Preserving column widths in Listview 
Author Message
 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



Tue, 01 Jun 2004 01:19:57 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ListView column width = ListView width ?

2. Total width of columns = Width of ListView

3. Total width of columns = Width of ListView

4. Total width of columns = Width of ListView

5. Total width of columns = Width of ListView

6. How to get the widths of the columns in a ListView

7. How to get control if you resize the width of a Column in a ListView

8. Listview: Auto set column width?

9. Column widths not "sticky" in ListView

10. ListView returning incorrect column width

11. How to lock column width in ListView?

12. Setting column widths in Listview control

 

 
Powered by phpBB® Forum Software