Skip to content

AAARRGH - ListView - I need to have 1 item per row not many per row

Robert Bone

Asked Jun 27, 2009, 8:53 PM EDT2 answers
Share
LinkedInX
I have a ListView that I want to have contain 1 item per row, and not multiple items per row.
At the moment, it looks like:
Item1   Item2 Item3
Item4 Item5 Item6
And I need it to look like:
Item1
Item2
Item3
etc....

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi Robert,

    You have to set the View property for the ListView to 'Details'. I personally also like to enable the Gridlines property and the FullRowSelect property so that the ListView looks better.

    Code
     listView1.View = View.Details;
    
     // These are optional
     listView1.GridLines = true;
     listView1.FullRowSelect = true;

    Cheers
    David
               
    0
  • 0
    Thanks - works like a charm.
    Bob Bone
    0