CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> .NET

 Dynamic Row Color Change

Print topic Send  topic

Author Message

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
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

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

Posts: 1679
Posted: 09/10/2008, 4:42 PM

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:
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

MS Access to Web

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

Home   |    Search   |    Members   |    Register   |    Login

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