#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Location
    Montreal, Canada
    Posts
    486
    Rep Power
    11

    Lisview ? property for 1 column ?


    Hi,

    I have a list view, and the program populate it in sort that has many colums has he can enter in a line. But I don't like that at all.

    I would like to only have 1 colomn only. If I remember correctly in vb6 you were able to change it with just a property name something like numberofrow =1 or something like that.

    but I can't find anything related to it in vb.net !??

    I want to use a list view cause everywhere in the program it's use a list view, soo I want to stay with that standart, I doN,t like to have many different things a little bit anywhere.

    I checked out the Coloms (collection) property, but I can,t see what it do !

    help me please !
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Brisbane, Australia
    Posts
    50
    Rep Power
    11
    try

    yourListView.View = System.Windows.Forms.View.Details
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Location
    Montreal, Canada
    Posts
    486
    Rep Power
    11
    I don't understand ? What will that change really ?

    How will it help me ! :S
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Location
    Montreal, Canada
    Posts
    486
    Rep Power
    11
    Thank you that's working !

    I would have searching a long time to find that. Thank you ! ! I still don't understand how it's works but it's work find.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Brisbane, Australia
    Posts
    50
    Rep Power
    11
    sorry being lazy typing out only syntax

    with listview set to Detail view mode, everything will be displayed downward when the display region is full. Whereas listvew with List view mode, everything is drawn side way when the display region is full.

    the control you used to use in VB6 I guess it would be ListBox, not ListView, which by default displays items in one column, and you can specify to have multiple columns.

IMN logo majestic logo threadwatch logo seochat tools logo