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)

techbash 2016

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!