arrange items in rows (vertically) in a list view

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DjPal
    New Member
    • Dec 2009
    • 15

    arrange items in rows (vertically) in a list view

    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?
  • GaryTexmo
    Recognized Expert Top Contributor
    • Jul 2009
    • 1501

    #2
    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).

    Comment

    • DjPal
      New Member
      • Dec 2009
      • 15

      #3
      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..

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        Set the view style to "Details"
        Then each item is its own row

        Comment

        • GaryTexmo
          Recognized Expert Top Contributor
          • Jul 2009
          • 1501

          #5
          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?

          Comment

          Working...