PC Review


Reply
Thread Tools Rate Thread

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

 
 
Kueishiong Tu
Guest
Posts: n/a
 
      7th Sep 2003
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.
 
Reply With Quote
 
 
 
 
Kevin Westhead
Guest
Posts: n/a
 
      7th Sep 2003
"Kueishiong Tu" <(E-Mail Removed)> wrote in message
news:2e7501c37517$7a8e0050$(E-Mail Removed)...
> 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.

--
Kevin Westhead


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the BackColor, ForeColor of the selectedNode inTreeView if it is lost focus? linuxfedora Microsoft C# .NET 0 22nd Mar 2010 11:04 AM
Change Textbox Backcolor and Forecolor at Runtime Ayo Microsoft Excel Programming 7 25th Aug 2009 11:10 PM
Change the value of a Listview subitem =?Utf-8?B?dG1vZWxsZXI=?= Microsoft Dot NET Framework Forms 1 13th Jul 2006 12:19 AM
ListView Subitem Forecolor problem Tom John Microsoft VB .NET 4 26th Nov 2003 04:14 PM
How to change the color of a subitem of a listview item? Kuehiong Tu Microsoft Dot NET Framework 1 7th Sep 2003 03:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:35 PM.