Results 1 to 2 of 2

Thread: Smooth way of adding subitems in ListView

  1. #1

    Thread Starter
    New Member PeeWee's Avatar
    Join Date
    Jan 2003
    Location
    Nybro, Sweden
    Posts
    15

    Smooth way of adding subitems in ListView

    Which is the fastes and smoothest way to add an item with its subitems into a ListView control?

    Is there a way to automatically add subitems to the last added item in the list?
    "Two wrongs won't make one right, but three left does!"

  2. #2
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    If you declare and add a listview item you can easaly change all kinds of properties afterwards.....

    Ex:
    Code:
    Dim lvi As New ListViewItem("Text")
    ListView1.Items.Add(lvi)
    lvi.SubItems.Add("Text again")
    lvi.ForeColor = Color.Green

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