4
Answers

changing color of list view cell using C#

ishika singh

ishika singh

15y
50.3k
1
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)