Bohn
Bohn

Reputation: 26919

ListView problem: it does not Jump to the selected item

Ok I am saying lsvAvailable.Items[index].Selected = true; and HideSelection is false so it shows the gray back color on the selected item, which is what I want .. but if the found item is somewhere down the list so I need scrolling to SEE it. it does Not JUMP to that item...and still I need to ba able to continue typing ( let's say I am typing in a text box like a search box and it is showing the item in the listView)

Upvotes: 3

Views: 649

Answers (1)

Jeff Ogata
Jeff Ogata

Reputation: 57823

Call the ListViewItem.EnsureVisible method:

lsvAvailable.Items[index].EnsureVisible();

Upvotes: 4

Related Questions