CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Alternate Row Colors - Which row am I on?

Print topic Send  topic

Author Message
smalloy

Posts: 107
Posted: 04/21/2005, 11:55 AM

I am writing a report that uses groups utilizing the Simple Groups Example:

http://docs.codecharge.com/studio/html/ProgrammingTechn...Groups.html?toc

BUT... I am using Alternate row colors so I need to change the code to provide for the new Employees.alt_Department.Value as well as the Employees.Department.Value.

Since I am in the BeforeShowRow event how can I tell if the row is standard or the alt?


_________________
Anything can be done, just give me time and money.
View profile  Send private message
Nicole

Posts: 586
Posted: 04/22/2005, 12:43 AM

Hello,
I deal with it using row counter (i). I declared it above Before Show Row event code and incremented by 1 in Before Show Row event. Even rows are Alt rows and odd rows are normal rows. Here is a code I used:
  
i = i+1  
if int(i/2) = i/2 then  
' alt row  
else  
' normal row  
end if  

_________________
Regards,
Nicole
View profile  Send private message
smalloy

Posts: 107
Posted: 04/22/2005, 6:04 AM

Great! Works like a charm!

Thanks
_________________
Anything can be done, just give me time and money.
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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