471,607 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,607 software developers and data experts.

backcolor in ListView Item

In a ListView control (two columns), I added a few
ListView items.

ListView listview=new ListView();

ListViewItem lvi=newLitViewItem("1");
lvi.SubItems.Add("Item 1");

ListViewItem lvi=newLitViewItem("2");
lvi.SubItems.Add("Item 2");

When clicking one of the items, the selected one had

backcolor light grey.

But when change focus from the other controls in same form

to the ListView control, the focused ListView item had

backcolor blue.

What I want is set backcolor light grey for ListView items

when they get focus.

How to do it?


Nov 15 '05 #1
0 2066

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by J_Max | last post: by
2 posts views Thread by Anushya devi | last post: by
3 posts views Thread by MikeY | last post: by
6 posts views Thread by Kevin | last post: by
6 posts views Thread by Brandon McCombs | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.