AutoGrow for ListView (View List)

  • Thread starter Thread starter martin.zugec
  • Start date Start date
M

martin.zugec

Heya,

I encountered one problem today. I am using ListView for storing some
items here. View mode is List (to show as many items as possible),
however view is trimmed (instead of TestPackageXXX it will show
TestPacka...).

Is there any option to change this behavior?

Thanks,
Martin
 
Just FYI, there are NO columns, so I cant use "-2" or
AutoResizeColumns property on it :(

How is ListView working if there are no columns??? Is there any way
how to change configuration for "default" column??

Martin
 
Actually there is a column, a default one. You should be able to use
P/Invoke and send a LVM_SETCOLUMNWIDTH message to the listview to change the
width of it. I don't know if there's a built-in way

/claes
 
Hi Claes,

thanks for help, however I found easier solution - when View = List is
used, it is automatically using FIRST column as default. So I created
"fake" column just to specify style I wanted to use and it is working.

Martin
 
Back
Top