Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container in a grid
Message
 
 
To
17/04/2001 13:51:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00496243
Message ID:
00496261
Views:
10
>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform