Hello,
Is there any way to highlight a listview record (row) if the index of the row is known? I have seen similar posts for selecting a row, but i haven't seen any code to "highlight" a row? Any help would be greatly appreciated.
Thanks bjd4jc for your speedy response. What I am actually looking for is something that will physically highlight the desired row ... giving the same effect as if you were to click on the row in the listview.
I have tried your example code, but I believe the EnsureVisible method just makes sure the selected record is visible on screen so that you don't have to scroll up and down the listbox.
Also make sure the "HideSelection" property of the listview is not checked. Right click on the Listview and select properties to find this property. Note if you are in report mode then the other columns are not effected.
Thanks Trancend for your response. I actually had tried your code (and something similar before) but it didn't highlight the record. Although I know it was selected (from using msgbox to output one of the fields).
SemperFiDownUnda, your suggestion did the trick and was the only thing that was preventing me from seeing the selected record.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.