By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,709 Members | 1,650 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,709 IT Pros & Developers. It's quick & easy.

backcolor in ListView Item

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.