In a ListView control (two columns), I added a few
ListView items.
ListView listview=new ListView();
listview.Parent=this;
listview.View=View.Details;
listview.Columns.Add
("Col1",200,HorizontalAlignment.Left);
listview.Columns.Add
("Col2",800,HorizontalAlignment.Left);
ListViewItem lvi=newLitViewItem("1");
lvi.SubItems.Add("Item 1");
listview.Items.Add(lvi);
ListViewItem lvi=newLitViewItem("2");
lvi.SubItems.Add("Item 2");
listview.Items.Add(lvi);
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?
Thanks
Keith