Re: Change the colour of rows in a grid based on data

Author: Jeff Johnson

Posted: 2010-09-22 at 14:45:38

Actually this is a grid of orders. Each letter stands for a different

order status. ie orders are green if they are out for delivery, yellow

if they are late, and red if they were supposed to be delivered yesterday.

Jeff

---------------

Jeff Johnson

jeff@san-dc.com

(623) 582-0323

www.san-dc.com

On 09/22/2010 11:42 AM, Stephen Russell wrote:

> On Wed, Sep 22, 2010 at 1:27 PM, Jeff Johnson<jeff@san-dc.com> wrote:

>

>> This is in the init of the grid

>>

>> .SetAll("DynamicBackColor", ;

>> "IIF(RECNO(THIS.RecordSource) = THIS.ncurrentrecord," + ;

>> "THIS.gridactivebackcolor," + ;

>> "IIF(vtank.cur_ostat = 'S'," + ;

>> "RGB(0,255,0)," + ;

>> "IIF(vtank.cur_ostat = 'A'," + ;

>> "RGB(0,200,0)," + ;

>> "IIF(vtank.cur_ostat = 'D'," + ;

>> "RGB(0,128,0)," + ;

>> "IIF(vtank.cur_ostat ='W'," + ;

>> "RGB(255,0,0)," + ;

>> "IIF(vtank.cur_ostat = 'C'," + ;

>> "RGB(0,0,255)," + ;

>> "THIS.griddefaultbackcolor))))))", ;

>> "COLUMN")

>>

>> This colors the rows in a grid based on order status. ;^)

>>

> ----------------

>

> What are you double rainbow man?

>

> ;->

>

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4C9A4ED2.7080604@san-dc.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Jeff Johnson