Some ListView, I don't see SelectedItem

Sergionik

Member
Joined
Sep 22, 2010
Messages
7
Programming Experience
Beginner
Hi all!
sorry my english...

My problem: I have 2 ListView (WindowsForm)
Idea - in the first ListView (ListView1) I choose item and second ListView (ListView2) filled with corresponding items
But, when I choose item in the second ListView, the highlithed item in the first ListView lost (I don't see him)

P.S. ListView1 remember earlier chosen item

Code:
ListView1.SelectedItems.Item(0).SubItems(0).Text
 
It is better to set HideSelection property in Designer view, unless that is not possible due to creating the ListView instances in code or having to conditionally set the value at runtime.
 
Back
Top