How to change the ForeColor and BackColor of a listview subitem?

K

Kueishiong Tu

Is there any way to change only the ForeColor and
BackColor of a subitem of a listview item? That means
if the listview is displayed in detailed mode, only one
field of a listview item has a different color instead of
the whole row.
 
K

Kevin Westhead

Kueishiong Tu said:
Is there any way to change only the ForeColor and
BackColor of a subitem of a listview item? That means
if the listview is displayed in detailed mode, only one
field of a listview item has a different color instead of
the whole row.

The ListViewSubItem class has its own Font, ForeColor and BackColor
properties, however there are ignored unless you set the
UseItemStyleForSubItems property of the list-view to false.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top