Read ListView Items by Column Name
Posted on 2011-09-06
Hi, We use listView in our vb.net project (VB 2005). up until now we've been Referencing the item and sub item by index. We'd like to change that and Reference item by it's column name.
it we have four columns in our list. i
For i As Integer = 0 To listView1.Items.Count - 1
We'd like to use listView1.Items(i).SubItems("Column1").Text
I can't figure out how to do this currently, because it's not working right now.