Programmatically Select ListView Item?

Programmatically Select ListView Item?

mdhutchinson
Advisor Advisor
374 Views
0 Replies
Message 1 of 1

Programmatically Select ListView Item?

mdhutchinson
Advisor
Advisor
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?
0 Likes
375 Views
0 Replies
Replies (0)