>Hi.
>I have been using Jenny Brown's article "Build Multiple Row-per-Record Grids" from the June, 2000 FPA to build containers in grids.
>
>I have a command button in the container that I want captioned in *Red* if a memo field is populated and *Black* if not. I can't seem to find a "refresh" that will update the individual records. The refresh on the control never fires (checked that with a 'wait window')
The Refresh method of the Grid, does not propagate like the Refresh method of a form. You could the following functionality to your grid to correct this "flaw".
local lxx, oControl
With THIS
For lxx = 1 to .ColumnCount
oControl = Eval(".Columns[lxx]."+.Columns[lxx].CurrentControl)
if pemstatus(oControl,'Refresh',5) then
oControl.Refresh()
endif
Endfor
Endwith
Add the code to the Refresh method of the grid. It will go through and call the Refresh methods of all currentcontrols. If more than one control is in a column, the non-active one doesn't get updated. You could change this if you like.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao