?
Solved

how to scroll to last item of a listview

Posted on 2009-03-31
3
Medium Priority
?
588 Views
Last Modified: 2012-05-06
Hi, if you have a listview being populated with data; what is the command to automatically scroll to the last item being added to that listview
e.g.
 
lvMyItem = House.items.add("House of character")
lvMyItem.add("¬4,000")
etc..

Open in new window

0
Comment
Question by:borgb002
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:borgb002
ID: 24031784
BTW I'm using VB .NET 2008
0
 
LVL 48

Accepted Solution

by:
jpaulino earned 2000 total points
ID: 24032028
You can use EnsureVisible()
Example

        Dim item As New ListViewItem
        item.Text = "columm 1"
        item.SubItems.Add("column 2")
        Me.ListView1.Items.Add(item)
 
        item.EnsureVisible()

Open in new window

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question