soulpumpkin
Programmer
Is this possible? I've tried using the following:
This doesn't work, and tells me the result can't be indexed. I haven't worked with adding hyperlinks before to a listview. Any help would be welcomed.
Thanks,
Soul Pumpkin
Code:
Dim link As New System.Web.UI.WebControls.HyperLink
lstDuplicates.Columns.Add("Description", 250, HorizontalAlignment.Left)
lstDuplicates.Columns.Add("Code - Worksheet Number", 250, HorizontalAlignment.Left)
lstDuplicates.Columns.Add("File Name", 500, HorizontalAlignment.Left)
'populate listview
Do While x < (dataArray.Length - 1)
If dataArray(x) = "" Then
Else
lvi = New ListViewItem
lvi.Text = Trim(dataArray(x))
lvi.SubItems.Add(Trim(dataArray(x + 3)))
lvi.SubItems.Add(link(Trim(dataArray(x + 6))))
lstDuplicates.Items.Add(lvi)
End If
x += 9
Loop
This doesn't work, and tells me the result can't be indexed. I haven't worked with adding hyperlinks before to a listview. Any help would be welcomed.
Thanks,
Soul Pumpkin