Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Khalil Shaddad
  Where is Khalil Shaddad?
 Beirut
 Lebanon
 Khalil Shaddad
 To: Stego
  Where is Stego?
 Redlands
 California - United States
 Stego
 Tags
Subject: RE: Grid Row Color based on Data In Column 1
Thread ID: 22904 Message ID: 22928 # Views: 23 # Ratings: 0
Version: Visual FoxPro 6 Category: Grids
Date: Wednesday, April 30, 2003 6:49:55 AM         
   


> Hello there!
> I've looked through the FAQ and the Forums and cannot find an answer to this, thus I ask:
>
> I've got a Grid that is 8 colums wide, and several rows deep.
> Based on the Text that shows in column 1, I'd like to change the color of that particular row.
> What I'd like to find out is, How do I reference the data contained in a grid cell on the same row? Ive tried
>
> thisform.jogrid.setall("DynamicBackColor", ;
> "iif(activerow.column1.text = '*', RGB(255,0,0);
> ,RGB(255,255,255))", "Column")
>
> and a few other variations, and it allways says the expression is invalid.

Hi,
go to the download section and search for download id = 32 or for keyword = GridHighlighter.
download ghl6.zip and you will find a class that handles what you want and a lot more and it runs in VFP6 and 7.
Khalil Shaddad (Lebanon)

COMPLETE THREAD

Grid Row Color based on Data In Column 1 Posted by Stego @ 4/29/2003 8:38:06 PM
RE: Grid Row Color based on Data In Column 1 Posted by Pete Sass @ 4/29/2003 9:01:05 PM
RE: Grid Row Color based on Data In Column 1 Posted by Khalil Shaddad @ 4/30/2003 6:49:55 AM