ishika singh

ishika singh

  • NA
  • 27
  • 0

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)