For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > April 2005 > ListView problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ListView problem
HLong

2005-04-30, 3:55 pm

Is there a way of forcing the listview control to display
a single column (long list with vert. scroll bars) instead
of breaking the list into columns with hor. scroll bars? I
have a list view with the view property set to list and
sometimes it displays a long list and other times it
breaks up the list.
MikeD

2005-04-30, 8:55 pm


"HLong" <anonymous@discussions.microsoft.com> wrote in message
news:08d401c54d9c$f0d89590$a501280a@phx.gbl...
> Is there a way of forcing the listview control to display
> a single column (long list with vert. scroll bars) instead
> of breaking the list into columns with hor. scroll bars? I
> have a list view with the view property set to list and
> sometimes it displays a long list and other times it
> breaks up the list.


Set the ListView to Report view and add a single ColumnHeader to it. You can
do this at design-time or runtime.

--
Mike
Microsoft MVP Visual Basic



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com