Listview item color

vis781

Well-known member
Joined
Aug 30, 2005
Messages
2,015
Location
Cambridge, UK
Programming Experience
5-10
If you are talking about trying to change the color of a listviewitem then as you probably already know this isn't supported in the compact framework. It going to be a matter of writing your own custom control for this, or if you don't mind spending then there are a lot of third party controls out there that may have what you want. Sorry i can't be much more help than that.

P.s i'm talking in terms of .Net 1.x i don't know what you are using because you haven't set your primary platform. But if it is 2.0 you may be lucky in that they have added this functionality.
 

Nocively

New member
Joined
Sep 18, 2006
Messages
1
Programming Experience
Beginner
Change item forecolor or backcolor(works same way)

there is a simple command line to add the forecolor or backcolor of a single Line added to the listview object.

In this line of code i´m getting data from Adobd.

ListView2.Items.Add(RST.Fields("Horas").Value).ForeColor = Color.Red

so you can change forecolor to backcolor and your problem is easylly solved
 
Top Bottom