0

listview1.items.add << it's is possible to declare a specific subitems vertically?
i don't know how, but i'm still trying fix this


please help


here's my sample

Dim item As ListView
            Dim row As ListViewItem = Me.lstLicense.Items(0)

  With row
                lstLicense.subitems.Add(16).Text = (objDataReader("Division"))

            End With
4
Contributors
4
Replies
17
Views
6 Years
Discussion Span
Last Post by NetJunkie
0

This might be correct way to do it

Dim newItem As ListViewItem

' Start with four sub items
newItem = New ListViewItem(New String() {"First", "Second", "Third"})
ListView1.Items.Add(newItem)
' Now add the fourth sub item
ListView1.Items(0).SubItems.Add("Fourth")

HTH

0

Can you describe what you are trying to do in functional (non-programming) terms?

Edited by Reverend Jim: n/a

0

This should work. I have tried this before and worked fine for adding subitems to my columns. You may need to declare the Item you would like to add the subitem to but other than that it should work.

ListView1.Items.SubItems.Add("String")
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.