listView

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!
 
N

Norman Yuan

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top