I have a Listview control, with multiple columns. Every time I add a column, I have to go back and change my code to referenced the changed column ordinal values.
I access the ListView columns by ordinal value. Is there a way to access them by name?
Here is my code where I populate the listview:
Dim li As New ListViewItem
li.SubItems(0).Text = objDropdownQuery.order_to_run
Here is where I access the listview:
li.SubItems(4).Text = "no table to drop"