473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

arrange items in rows (vertically) in a list view

DjPal
15
Hi.

I have a listview , and when items are allocated to it, they get displayed in rows, ie, one next to the other, whereas i would prefer it to place each item in a new line such that it is arranged vertically, is there any way of doing this?
Mar 18 '10 #1
4 25728
GaryTexmo
1,501 Expert 1GB
Try setting these two properties in the designer...

Alignment = Left
AutoArrange = False

Alignment will make the items start on the left and grow down, AutoArrange will make it so you don't get a second column (unless you want that, then leave a AutoArrange as True).
Mar 18 '10 #2
DjPal
15
thank you very much.
the items are now appearing vertically, however there is a large gap between each item and once the items reach the bottom, new items are allocated into another column.. could it be just one column? I tried AutoArrange as True and False but still get a second column..
Mar 18 '10 #3
tlhintoq
3,525 Expert 2GB
Set the view style to "Details"
Then each item is its own row
Mar 18 '10 #4
GaryTexmo
1,501 Expert 1GB
Setting the view to list got rid of the gap (which takes away room for the icon), but I'm not sure how to force it to be one column.

Per T's suggestion, Details works but you have to set a column up.

Let me switch it up here... what do you need to accomplish here? It sounds like you're trying to turn a ListView into a ListBox. Is there any reason you can't just use a ListBox?
Mar 18 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Colleyville Alan | last post by:
I am trying to use a list box to allow users to select items, the results are queried based on the selection and written to a spreadsheet. If the item already exists on their current spreadsheet,...
2
by: duraisridhar | last post by:
Hi all., I am using the Listview control to display my data in table fromat Is there any way ( simple or complex) to Limit the number of rows displayed to avoid the empty rows which is also ...
3
by: Brent Hoskisson | last post by:
I can't figure out what I'm missing here. I set up a list view control. As I load the form, I select one of the items in the list view control: lvwPrograms.Items(0).Selected = True ...
11
by: Brian Henry | last post by:
Well here is the problem, I have a data set with about 9,000 to 20,000 people in it in the data table "people"... I am then reading it into a list view one at a time row by row... adding each...
0
by: Brian Henry | last post by:
Here is another virtual mode example for the .NET 2.0 framework while working with the list view. Since you can not access the items collection of the list view you need to do sorting another...
3
by: Brian Henry | last post by:
So what is the easiest way to do this? I have one list view with a list of items (in detail view and with about 20 sub items) and a second list view that will take the items they drag from the...
2
by: Miesha.James | last post by:
Hello, I've added a list view to a windows form and I want to add items and subitems to the list at runtime. The problem that I have is that when I try to use the list view control variable it...
2
by: Miesha.James | last post by:
Hi, I have a list view that will be update dynamically when new information is received. I parse through the information and call the update function to clear the current items that are in the...
4
by: Lou | last post by:
How do you add items(Insert) to the top of the List View? -Lou
5
by: truezplaya | last post by:
hi Another niggling issule. I am trying to remove all the databound items from my listview but it doesn't work. I am trying to remove the items as i have used the delete command button (alongside...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.