Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mike Gagnon
  Where is Mike Gagnon?
 Pointe Claire
 Canada
 Mike Gagnon
 To: John Hayna
  Where is John Hayna?
 
 Philippines
 John Hayna
 Tags
Subject: RE: Grid's forecolor
Thread ID: 330955 Message ID: 330964 # Views: 72 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Grids
Date: Sunday, December 25, 2011 2:05:43 AM         
   


> Hi all,
>
> I am new in this forum and I quite need your help.
>
> I have a grid where employees will browse items to sell for my POS software. I want the forecolor of the certain row to be RED when the item is low in stocks. I have a low_level column in my products table where I can compare the current onhand versus the value in the low_level column, comparing them will determine if the product is low in stocks, I can do this, what I do not know is how to make the forecolor of that record in the grid to be RED. Can you guys help me sort things out?
>
> Thanks in advance

Look at 'solutions' that comes with foxpro

oGrd.SetAll("dynamicforecolor", ;
			"IIF(discontinu, RGB(192,192,192), RGB(0,0,0))", "Column")


Mike Gagnon
Refox XI +(English version)

ENTIRE THREAD

Grid's forecolor Posted by John Hayna @ 12/24/2011 9:00:42 PM
RE: Grid's forecolor Posted by Mike Gagnon @ 12/25/2011 2:05:43 AM
RE: Grid's forecolor Posted by John Hayna @ 12/26/2011 2:57:17 AM
RE: Grid's forecolor Posted by Jun Tangunan @ 12/26/2011 3:33:04 AM
RE: Grid's forecolor Posted by John Hayna @ 12/26/2011 7:58:35 AM
RE: Grid's forecolor Posted by Jun Tangunan @ 12/27/2011 6:36:38 AM
RE: Grid's forecolor Posted by John Hayna @ 12/27/2011 7:46:20 AM
RE: Grid's forecolor Posted by Jun Tangunan @ 12/27/2011 11:44:48 PM
RE: Grid's forecolor Posted by Mike Gagnon @ 12/25/2011 2:10:47 AM