Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2008

Tip: Looking for answers? Try searching our database.

AutoGrow for ListView (View List)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
martin.zugec@gmail.com - 09 Jan 2008 13:27 GMT
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
martin.zugec@gmail.com - 09 Jan 2008 15:19 GMT
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
Claes Bergefall - 10 Jan 2008 12:20 GMT
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

> Just FYI, there are NO columns, so I cant use "-2" or
> AutoResizeColumns property on it :(
[quoted text clipped - 3 lines]
>
> Martin
martin.zugec@gmail.com - 10 Jan 2008 13:57 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.