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

--
LZ

Re: listView by Norman

Norman
Mon Dec 10 08:15:02 PST 2007

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.


"Lamis" <Lamis@discussions.microsoft.com> wrote in message
news:E8D130F8-ADA7-46A9-BC69-02DD2DEC7F32@microsoft.com...
> 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!
> --
>
> --
> LZ