Scroll ListView control to last item in .NET

This forum is dedicated to software development, talk about source code and programming functioncs, etc.
Site Admin
Posts: 6
Joined: Fri Jan 16, 2015 4:24 pm

Scroll ListView control to last item in .NET

Postby Stack-Tech » Fri Jan 23, 2015 12:30 am

One would think this would be easy to figure out right? Say you want to scroll to the bottom of a list view control to show the user the new items you've just added to the list.

Is as simple as this...

Example (VB.NET):

Code: Select all

       
                ListView1.EnsureVisible(ListView.Items.Count - 1)
                ListView1.Update()

Return to “Software Development”

Who is online

Users browsing this forum: No registered users and 1 guest

 

 

cron