1 Replies - 637 Views - Last Post: 29 March 2011 - 06:14 AM Rate Topic: -----

#1 polens  Icon User is offline

  • D.I.C Head

Reputation: 13
  • View blog
  • Posts: 155
  • Joined: 09-November 09

ListView Control (Groups)

Posted 29 March 2011 - 05:54 AM

This code works but not what i like it to do...
The output of this is in Horizontal..
{ITEMS
pencil pen ballpen}
and the thing that i want is vertical..
{ITEMS
pencil
pen
ballpen}
 While read.Read
              
                ListView4.Items.Add(New ListViewItem(read.Item("CandidateName").ToString, kagawad_group))

            End While

i tried to loop it but and it still does the same...

Is This A Good Question/Topic? 0
  • +

Replies To: ListView Control (Groups)

#2 Amrykid  Icon User is offline

  • 4+1=Moo
  • member icon

Reputation: 148
  • View blog
  • Posts: 1,589
  • Joined: 16-December 08

Re: ListView Control (Groups)

Posted 29 March 2011 - 06:14 AM

View Postpolens, on 29 March 2011 - 07:54 AM, said:

This code works but not what i like it to do...
The output of this is in Horizontal..
{ITEMS
pencil pen ballpen}
and the thing that i want is vertical..
{ITEMS
pencil
pen
ballpen}
 While read.Read
              
                ListView4.Items.Add(New ListViewItem(read.Item("CandidateName").ToString, kagawad_group))

            End While

i tried to loop it but and it still does the same...


You might want to look into the View property for the ListView. ListView.View Property.

If you set it to Details view, it might go vertical (but this is from the top of my head).
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1