Click here to Skip to main content
15,912,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need help figuring out how to change a row color based on a column in that rows data.

example:

col 1 col 2
zack -$10
mike +25

i want zack's row to show up as red and mike's to show up with green. This list view gets its data from a excel file so the data is always getting updated and thats where i m getting stuck. I need to do this when i hit the refresh button so its under a button click that this has to happen

please help...
Posted

1 solution

i figured it out myself

VB
If Value3 = "XXXX" Then
    item.BackColor = Color.Gold
End If
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900