Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Go to specific row in Listview control?

Status
Not open for further replies.

JBG

Programmer
Oct 22, 2001
99
US
Does anyone know if it is possible to programmatically force a Listview control (SP6) to go to/display a specific row within multiple rows?

I have a program whereby the user clicks on a record on listview control #1 and which opens a larger listview control (#2) on another form.

Listview control #2 mirrors the content of listview control #1, but I would like it to be display (that is, have highlighted) the same record as the user highlighted in lisview control #1 (I have accomplished this) as well as have that particular record displayed without having to scroll for it.

It is this last part I am need of help with.

Any help would be appreciated...

Thanks!

JBG
 
You just saved me from writing about an hour's worth of crude code to solve this issue.

I was unaware of this and it works perfect.

Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top