T
Tim
I have a custom control that uses a ListView control in it. It worked as
expected until SP2. Now with SP2, the left-most visible (width > 0) column's
width is displaying much too wide, for no apparent reason.
Scenario:
ListView Column 1 width set to 0 (I hide the first col)
Column 2 width set to -2 (auto-size col width to header text width), column
header text set to "Name"
Column 3 width set to -2, column header text set to "Gender Id"
With SP1, the first col was hidden, the second and third column widths were
sized to the width of the column headers, as the -2 value is supposed to do.
With SP2, the first col was hidden, the second column was about 3 times the
width of its column header value (which is "Name") and third column width
was normal (sized correctly to the header value width).
I took the same code and ran it on a device that still had only SP1 on it.
The results were back to normal, the columns with -2 as their width
property, were sized correctly to the width of the headers.
Conclusion:
It seems to only affect the left-most visible column. If the left-most
column is set to width = 0, then the next column to the right, set to -2
width, will display too wide (way too wide). The columns following that, set
to -2 width, will display correctly.
If the first column's width property is set to -2, then that column displays
too wide, and subsequent columns set to -2 display predictably.
Does anyone else see this behavior? Can Microsoft look into this?
Thanks,
Tim
expected until SP2. Now with SP2, the left-most visible (width > 0) column's
width is displaying much too wide, for no apparent reason.
Scenario:
ListView Column 1 width set to 0 (I hide the first col)
Column 2 width set to -2 (auto-size col width to header text width), column
header text set to "Name"
Column 3 width set to -2, column header text set to "Gender Id"
With SP1, the first col was hidden, the second and third column widths were
sized to the width of the column headers, as the -2 value is supposed to do.
With SP2, the first col was hidden, the second column was about 3 times the
width of its column header value (which is "Name") and third column width
was normal (sized correctly to the header value width).
I took the same code and ran it on a device that still had only SP1 on it.
The results were back to normal, the columns with -2 as their width
property, were sized correctly to the width of the headers.
Conclusion:
It seems to only affect the left-most visible column. If the left-most
column is set to width = 0, then the next column to the right, set to -2
width, will display too wide (way too wide). The columns following that, set
to -2 width, will display correctly.
If the first column's width property is set to -2, then that column displays
too wide, and subsequent columns set to -2 display predictably.
Does anyone else see this behavior? Can Microsoft look into this?
Thanks,
Tim