Message 1 of 1
Programmatically Select ListView Item?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
From ListView help...
"To programmatically select a ListItem object, use the Set statement with the SelectedItem property, as follows:"
[code]
Set ListView1.SelectedItem = ListView1.ListItems(23)
[/code]
I've done this and the item is truly selected... the
SelectedItems selected property value is set to true... and I might add ALL other items selected property is False.
SO, when I do Shift+End ... I would expect that items 23 through the last item should be selected... but instead... quite frustratingly... ALL the items are selected. Interestingly, if I do Shift+Home, the first item is selected as well as item 23.
What I want is the same behaviour I get as if the user selected item 23 and did a Shift+End.
What might I be missing?
"To programmatically select a ListItem object, use the Set statement with the SelectedItem property, as follows:"
[code]
Set ListView1.SelectedItem = ListView1.ListItems(23)
[/code]
I've done this and the item is truly selected... the
SelectedItems selected property value is set to true... and I might add ALL other items selected property is False.
SO, when I do Shift+End ... I would expect that items 23 through the last item should be selected... but instead... quite frustratingly... ALL the items are selected. Interestingly, if I do Shift+Home, the first item is selected as well as item 23.
What I want is the same behaviour I get as if the user selected item 23 and did a Shift+End.
What might I be missing?