Forums - C# Corner

Forum guidelines

changing color of list view cell using C#

Aug 27 2009 8:02 AM
hi, i want to change the color of list view on some particular cell using C# in windows application for that i tried

lvwNotice.Items[cntr].SubItems[5].BackColor = System.Drawing.Color.Red;
lvwNotice.Items[cntr].SubItems[5].Font.Bold = 1;

but it doesn't work, where i m doing wrong, or there is any other method for changing the color, font, style of listview cell value.

thanks

Answers (4)

C# Corner Hyderabad Developer Conference

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.