listView

  • Thread starter Thread starter Lamis
  • Start date Start date
L

Lamis

Hi,
listView1.Items[0].Selected = true does trigg my
listView1_OnSelectedIndexChanged event but the item doesn't change it's
color!! The line in my listView should be Blue, but it only turns blue when I
click on it..

How can I fix that??

Thank you!
 
Selected item in listview ONLY turns "blue" (highlighted) when the listview
has focus. ListView has a property called "HideSelection", default to true.
if you set it to False, then the selected item shows highlighted (blue) when
the listview has focus, or gray when the listview does not have focus.
 
Back
Top