Click to See Complete Forum and Search --> : Listview - EnsureVisible


Andrew Hepburn
November 2nd, 1998, 02:17 PM
Hi,


I want to scroll a listview so that a specific listitem is displayed at the top - EnsureVisible usually displays it at the bottom. Does anyone know how to do this?


TIA

Andy

James Grant
November 27th, 1998, 11:41 AM
This might work:


* Do an EnsureVisible on the last item in the list view.

* Do an EnsureVisible on the item you want


This should scroll upward, and stop when it is at the top. Of course, if it is one of the last items in the list, it will not be at the top.


-Jim