Groups | Blog | Home
all groups > vb.net controls > february 2004 >

vb.net controls : List View Items


Dino Buljubasic
2/19/2004 10:48:05 PM
Hi,

I know of various ways to display list view items such as SmallIcon,
LargeIcon, Details, ListView but none of them seam to be what I am
looking for. I also know about the LabelWrap property but that one
does not seam to be working for me neither.

Right now, my list view has only one column of specific width. If
text fits in the width, all of text is displayed, oterwise, it is
trimmed so it fits in the widht of my list view and looks like this:

Icon time_item text that fits
icon time_item text that does not fit completelly in ...
icon time_item text that fits

where '_' represents space.

I'd like to display my items so that they can wrap so that if item
text does not fit in the list view width, it will wrap to next line,
like for example:

icon time_item text substring(1)
item text substring(2)
item text substring(3)
icon time_item text substring(1)
icon time_item text substring(1)
item text substing(2)
icon time_item text substring(1)

....
....
....

time is just time, e.g. 08:00AM
item text is the text to be displayed in the list view for an item

Any help will be appreciated,
Ken Tucker [MVP]
2/20/2004 6:20:18 AM
Hi,

http://www.codeproject.com/cs/miscctrl/aa_listview.asp?target=listview

Ken
---------------------
[quoted text, click to view]

AddThis Social Bookmark Button