Forums

This topic is locked

datagrid color coding

Posted 21 Feb 2007 22:49:23
1
has voted
21 Feb 2007 22:49:23 shane johnson posted:
using dmx8 I am populating a datagrid from a SQL database. That was the easy part. Now I need to make it so a row is a color based on a field. Example if the Status is "Complete" make the row green. If the status is "Catastophic" make the row red. Can anyone point me in the direction or better yet point me to a tutorial. Thanks in advance.

Replies

Replied 22 Feb 2007 01:59:14
22 Feb 2007 01:59:14 Javier Castro replied:
Probably you can modify this code to do what you want:


<%If (Repeat1__numRows Mod 2) Then%>
<tr style="background-color:#CCCCFF">
<%Else%>
<tr style="background-color:#FFFFFF">
<%End If%>

Reply to this topic