You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My mistake, I was looking at a ComboBox.SelectedIndex with similar name. I set the ListView index by lvConfigTypes.items(0).Selected = True. Andrew Gerdel reported the same issue.
Activity
itg-assistant commentedon Jun 12, 2026
Andrew Niese answered 2016-11-28 19:50:50 UTC
Awesome. Found a bug: In details view, changing ListView.SelectedIndex programmatically does not fire the ListView.SelectedIndexChanged event.
A workaround is to call the event manually:
itg-assistant commentedon Jun 12, 2026
Luca answered 2016-11-28 20:10:22 UTC
ListView.SelectedIndex is read-only. How do you change it? There is no setter.
itg-assistant commentedon Jun 12, 2026
Luca answered 2016-11-28 20:13:50 UTC
In VB.NET lvConfigTypes.SelectedIndex=0 may be compiled as an equal (==) comparison instead?
itg-assistant commentedon Jun 12, 2026
Andrew Niese answered 2016-11-29 16:03:41 UTC
My mistake, I was looking at a ComboBox.SelectedIndex with similar name. I set the ListView index by lvConfigTypes.items(0).Selected = True. Andrew Gerdel reported the same issue.