ListViewItem color

  • Thread starter Thread starter Alan T
  • Start date Start date
A

Alan T

I want to change the color of the second column of the listviewitem to, say
red.
How do I do that?

I tried
listviewitem.subitems[1].ForeColor = Color.Red
but did not work.
 
Use must set ListViewItem.UseItemStyleForSubItems to false as well. i.e.

listviewitem.subitems[1].UseItemStyleForSubItems = false;
listviewitem.subitems[1].ForeColor = Color.Red

HTH :)

Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net
 

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

Similar Threads


Back
Top