Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy Topic For you Ultradev Jedis-Alternating Table Background Colors

Status
Not open for further replies.

Jables

Programmer
Joined
Aug 28, 2001
Messages
148
Location
US
Say I have a 2 column 1 row table defined as a repeat region for data in Ultradev. How do I make it so that the row color alternates on every repeat?
 
Sorry bout the delay replying

Ultradev will not do this itself you need to replace the table row tag &quot;<tr>&quot; with the following snippet

==============================================
<%If (Repeat1__numRows Mod 2) Then%>
<tr bgcolor=&quot;#CCCCFF&quot;>
<%Else%>
<tr bgcolor=&quot;#FFFFFF&quot;>
<%End If%>
==============================================
Then just edit the colours


Live long and make your kids suffer..
 
Works like a charm. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top