Board index » cppbuilder » 2 Listviews and line highlights

2 Listviews and line highlights


2006-06-02 10:43:47 PM
cppbuilder101
Hello,
I have 2 listviews, both contain a date and time, the date is in column 1
and the time is in column 2. I want to highlight a line in Listview1 (as
usual with the mouse or keyboard) and automatically highlight the line with
the same date and time in te second listview (Listview2).
Is this possible and ifo so, how.
Thanks,
Simon
 
 

Re:2 Listviews and line highlights

Simon Torm wrote:
Quote
Is this possible and ifo so, how.
In the OnSelectItem event for ListView1 you change the Selected
property of ListView2. Note that if you want selecting in either
listview to select from the other one you will need to guard the
OnSelectItem events to prevent getting stuck in loop.
--
Andrue Cope [TeamB]
[Bicester, Uk]
info.borland.com/newsgroups/guide.html
 

Re:2 Listviews and line highlights

Thanks, I will try it.
Simon.
 

{smallsort}