Anyone know how to set the listview forecolor and backgroundcolor?
-
Anyone know how to set the listview forecolor and backgroundcolor? (For .Net Compact Framework) I'm facing difficulty in understanding on how to set text color for a particular cell or item in the listview and also the background color for a row. Please help... really need to know how to do it. Thanks a million!!!
-
Anyone know how to set the listview forecolor and backgroundcolor? (For .Net Compact Framework) I'm facing difficulty in understanding on how to set text color for a particular cell or item in the listview and also the background color for a row. Please help... really need to know how to do it. Thanks a million!!!
I do not have access to a dev system at the moment, but MSDN indicates that ListView.ForeColor and ListView.BackColor are supported by the Compact Framework. If this is true, then... myListView.ForeColor = Color.Red; myListView.BackColor = Color.Blue; ListViewItem item = myListView.Items.Add("Item1"); item.ForeColor = Color.Green; item.BackColor = Color.Cyan;