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

  • Thread starter Thread starter Kueishiong Tu
  • Start date Start date
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.
 
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.
 
Back
Top