R
Rob
Using VS2005
I have added a Listview containing 4 columns in design mode...
How can i populate it programatically ?
I tried... but only "111" shows up in the list view. Also, I want it to
create a new line when adding it.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim str(4) As String
Dim itm As ListViewItem
str(0) = "111"
str(1) = "894"
str(2) = "888"
str(3) = "222"
itm = New ListViewItem(str)
ListView1.Items.Add(itm)
End Sub
I have added a Listview containing 4 columns in design mode...
How can i populate it programatically ?
I tried... but only "111" shows up in the list view. Also, I want it to
create a new line when adding it.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim str(4) As String
Dim itm As ListViewItem
str(0) = "111"
str(1) = "894"
str(2) = "888"
str(3) = "222"
itm = New ListViewItem(str)
ListView1.Items.Add(itm)
End Sub