?
Solved

ListView: Remember Row and Reselect it after refresh

Posted on 2008-06-19
1
Medium Priority
?
504 Views
Last Modified: 2012-05-05
I have a listview and i need to know the row currently selected, and after refresh reselect that row. I am in 1.1 of framework.
0
Comment
Question by:scorpion53061
1 Comment
 

Accepted Solution

by:
scorpion53061 earned 0 total points
ID: 21824261
Dim id As Integer
id = Me.lvwJobs.ListView.SelectedIndices.Item(0)

'do some stuff

Me.lvwJobs.ListView.Items(id).Selected = True
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month17 days, 10 hours left to enroll

831 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