Clearing existing Row-select in Listview

Started by Petrus Vorster, March 27, 2014, 03:13:15 AM

Previous topic - Next topic

Petrus Vorster

I have a listview on a form. I also have a find function from a textbox to find a specific entry in a listview with many entries.
A simple INSTR search.
I then use the FF_Listview_setselecteditem to  hightlight the first found line in the listview.
But it doesnt remove the previously selected rowselect if the user previously selected a line in the listview.
See image.
How does one clear the previous selected row?
-Regards
Peter

Petrus Vorster

-Regards
Peter

Israel Vega Alvarez

May be you need activate LVS_SINGLESEL in WindowStyles.

Petrus Vorster

What will I ever do without you guys on this forum?

Thanks a million, I overlooked that!!!
;D
-Regards
Peter