pleasse tell me how to fill color for one cell in listview

karthikeyan

Member
Joined
Oct 22, 2005
Messages
12
Programming Experience
Beginner
hi
i am using listview in my form, i want to fill color for one cell.i know how to fill color for one row fully and one coloumn fully,but for one cel how to fill
and one more thing onevalue in my table is 'p', whereever p starts that cell has to be fill by red color. please give me coding for that
 
You can simply set the BackColor property of any individual Subitems you like to whatever colour you like. You just have to make sure that you set the UseItemStyleForSubItems property of each Item to False. One of the ListViewSubItem constructor overloads also allows you to specify a ForeColor, BackColor and Font.
 
Back
Top