ListView Control SubItems Ignore Specified BackColor, ForeColor, and Font

Posted on 2008-11-12
Medium Priority
Last Modified: 2013-12-17
Selecting a ListView's 'Items' property in the control's PropertyGrid brings up a ListViewItem Collection Editor dialog and then  a ListViewSubItem Collection Editor where you can supposedly specify the background color (like RED), foreground color (like WHITE) and font (like Ariel) for each specific inserted SubItem.    But  after the project is built and run, the ListView displays the specified SubItem in just black text on white background in an unchanged font, totally ignoring the specific characteristics defined in the ListViewSubItem Collection Editor dialog.

How can I make the ListView honor the specified SubItem characterics?
Question by:Coder911
1 Comment
LVL 48

Accepted Solution

jpaulino earned 2000 total points
ID: 22946148
When you add the fist item you need to change the property UseItemStyleForSubItems to False or else it will use the same style for the subitems

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question