Results 1 to 4 of 4

Thread: ListView Problems

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    3

    Post

    Thanks for the reply to my earlier question, but now I'm faced with the problem of adding data to a list view. I'm putting together a database program and want to have a detailed list view, but how do I add data to the colums? I've looked at all the options and the code directly, but can't figure out how.

    Thanks in advance.

  2. #2
    Guest
    Have you looked to the help file? There is code on how to do this (atleast in VB4)

  3. #3
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    http://forums.vb-world.net/showthrea...threadid=38229


    td.

    (remember there is a search engine on these boards)


    "One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig


    [email protected]

    "but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.

  4. #4
    Guest
    Code:
      ' Making ColumnHeaders en settings
      With ListView1
        .View = lvwReport
        .ColumnHeaders.Add , "COL01", "Name", 2000
        .ColumnHeaders.Add , "COL02", "Lastname", 3000
        .FullRowSelect = True
      End With
      
      ' Placing items
      With ListView1
        .ListItems.Add , "ITEM01", "Kayoca"
        .ListItems.Item(.ListItems.Count).ListSubItems.Add , "CHLD01", "Mortation"
      End With

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width