Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I maintain position in a listview???

Status
Not open for further replies.

Bruce1965

Programmer
Sep 17, 2004
54
GB
I have a listview that has (say) 100 items. If I select an item then refresh the view, I loose position on the selected item.

How can I maintain position on the selected item upon refreshing the view ?????
 
Record the position of the selected item prior to refreshing.

refresh.

set the selected item index to the position you recorded.

-Rick

----------------------

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
You could save the selected row's index, the re-select again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top