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)

Cloud & IoT DevCon16

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.