Click here to Skip to main content
15,880,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
On my windows form, I have created a listview item. At run time when the items exceed the size of list view. List view show the access list item in a new column and adds a horizontal scroll bar in the bottom of list view.

I want to change this behavior, let it show all the list items in only one column and add a vertical scroll bar (instead of horizontal scroll bar).

How to accomplish it?

Thanks.
Posted

1 solution

Change View property of your ListView to Details
You need to have atleast one column in listview to use details mode. If it's not clear google for how to use listview's view property. :thumbsup:
 
Share this answer
 
v3
Comments
rakesh5454 23-Feb-11 4:25am    
Thanks for replying, My view property was already set to List. When I changed it to Details, it doesn't show the list data at runtime. However, I see the vertical scroll bar.
Prerak Patel 23-Feb-11 4:36am    
You need to have atleast one column in listview to use details mode.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900