kescott
Posts: 49
|
Posted: 09/10/2008, 12:23 PM |
|
I'm sure I asked this question but I can't find where I put it.
How would you dynamically change the color of a row based on the value in the STAT column?
For example I have
----------------------------------|
Name_|Address_|STAT_|
----------------------------------|
Bobby|1233 East Str| Act |<--Green
Marey |51 West Rds| New |<--Red
Julie__|23 River Lan| Del |<--Black
Samy |52 Bank Blvd| New |<--Red
-----------------------------------|
I implemented the column text color change referencing http://docs.codecharge.com/studio3/html/index.html?http...eTextColor.html
I wrote it with this code.
//Label status Event BeforeShow. Action Custom Code @207-2A29BDB7
// -------------------------
// Write your own code here.
if (EmployeesSTAT.Text == "Act") {
EmployeesSTAT.Text = "<font color=GREEN>"+EmployeesSTAT.Text+"</font>";
} else if (EmployeesSTAT.Text == "Del") {
EmployeesSTAT.Text = "<font color=RED>"+EmployeesSTAT.Text+"</font>";
}
// -------------------------
//End Label status Event BeforeShow. Action Custom Code
How do make the entire row color change whenever the STAT column value changes?
_________________
B.S. of Computer Science
Class of 2005
Norfolk State University
Norfolk, VA
http://www.nsu.edu
|
|
|
wkempees
Posts: 1679
|
Posted: 09/10/2008, 4:42 PM |
|
http://forums.codecharge.com/posts.php?post_id=99191&s_keyword=color http://forums.codecharge.com/posts.php?post_id=98040&s_keyword=color+row
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
|
|
|