Connecting Tech Pros Worldwide Help | Site Map

Multi-line ListView in VS.NET

JimC
Guest
 
Posts: n/a
#1: Jan 21 '06
I think this question has been asked before, but I haven't found
a satisfactory answer.

Does anyone know how to make a ListView that displays multiple
lines in a row?

Jim






Bruce Wood
Guest
 
Posts: n/a
#2: Jan 21 '06

re: Multi-line ListView in VS.NET


I'm not 100% sure, but I think that you have to move up to a grid for
that.

James Park
Guest
 
Posts: n/a
#3: Jan 22 '06

re: Multi-line ListView in VS.NET


"JimC" <jimc@nospam.pls> wrote in message
news:QMuAf.1372$2O6.586@newssvr12.news.prodigy.com ...[color=blue]
> Does anyone know how to make a ListView that displays multiple
> lines in a row?[/color]

Do you mean something like setting the View property to Details?


JimC
Guest
 
Posts: n/a
#4: Jan 22 '06

re: Multi-line ListView in VS.NET



"James Park" <abc@xyz.com> wrote in message
news:%23ac3X72HGHA.2064@TK2MSFTNGP09.phx.gbl...[color=blue]
> "JimC" <jimc@nospam.pls> wrote in message
> news:QMuAf.1372$2O6.586@newssvr12.news.prodigy.com ...[color=green]
>> Does anyone know how to make a ListView that displays multiple
>> lines in a row?[/color]
>
> Do you mean something like setting the View property to Details?[/color]

Hmm. I'm not quite sure how that would make multi-line viewing
possible, but I may be failing to grasp something here. A
ListViewItem has a read-only property called DisplayRectangle
which unfortunately can't be set. Or I don't see a way of setting
it. Does the Text property (which is derived from Control.Text)
have some method that accepts multiline strings and then
forces its display rectangle to re-size? That would probably
accomplish what I want.

Or is there perhaps some ListViewItem or SubItems
style setting that I've overlooked? If anyone knows,
t.i.a!

Jim






Closed Thread