I am having trouble with the listView in VB.NET. This seemed to be working the other day, and now it isn't. Now I get an error -> it tells my that my index is out of bounds of the collection or array size (or something like that).
DETAILS:
I have a listview in report mode. I have added my column headers and all of my items. Then I want it to select my first item, and I call the lv_Click() function.
In the lv_Click function I do certain things based on the index of the selected item.
PROBLEM:
in the load function, i do
lv.items(0).select = true
lv_Click(sender, new system.eventArgs())
when I check out the lv.selectedItems.count , it is =0. Everything that I have found says that when you do
lv.items(0).select = true, that it should select it, but it isn't being put into the lv.selecteditems collection. How do I make it do it?
DETAILS:
I have a listview in report mode. I have added my column headers and all of my items. Then I want it to select my first item, and I call the lv_Click() function.
In the lv_Click function I do certain things based on the index of the selected item.
PROBLEM:
in the load function, i do
lv.items(0).select = true
lv_Click(sender, new system.eventArgs())
when I check out the lv.selectedItems.count , it is =0. Everything that I have found says that when you do
lv.items(0).select = true, that it should select it, but it isn't being put into the lv.selecteditems collection. How do I make it do it?