CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Dynamic Row Color Change

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.