auto scroll to last added item in a listview...

Tech-Archive recommends: Fix windows errors by optimizing your registry



I have a listview control that when a new item is added, I'd like to auto
scroll that item to the top of the listview with the appropriate items
located above and below it...

Any time an item is added to the listview, the listview is refreshed -
meaning that the item can be located anywhere in the listview due to the
sort order...

So for example, if I had the following items

1
2
3
4
5 (newly added item)
6
7
8
9
10

I would want the listview to be scrolled so that item 5 (the new item) is
shown at the top of the lv with 6,7,8,9,10 below it. The user would then
have to scroll up to see items 1,2,3,4

Each listview item has a unique identifier - so can be easily located in the
listview...

Help!

Thanks, Brad


.



Relevant Pages

  • Re: Vertical Scollbar Extended
    ... Bill your post showed up three times ... ... local Jack In The Box this afternoon to write a ScrollBar control with no ... no timers on the ListView and only a few API calls for the ... thumb mouse drag or up/down or scroll click or mouse down repeat. ...
    (microsoft.public.vb.general.discussion)
  • Re: Forcing a ListView to scroll
    ... ALWAYS scrolls so that the group header is at the top of the ... ListView's visible area. ... It really does have to scroll so that the group ... header is right at the top of the visible part of the listView. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Listview question
    ... My question is to do with the WPF listview control. ... I have a listview which is displaying logging. ... scrolled to will scroll right out of view. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Listview question
    ... My question is to do with the WPF listview control. ... I have a listview which is displaying logging. ... scrolled to will scroll right out of view. ...
    (microsoft.public.dotnet.framework.aspnet)
  • lots of GDI objects
    ... I've got a ListView, 4 columns and about 300 items. ... Now when I scroll up and down repeatedly using the vertical scrollbar, ... Running the garbage collector manually does not help anymore then. ... use another backcolor, font or whatever. ...
    (microsoft.public.dotnet.languages.csharp)