Larry,
You can call the form's SetGridEnabledStatus() with a logical value indicating whether the grid should be enabled or disabled.
Note that the upcoming version of the Framework does this for you automatically. If you prefer, you can place the following code in CBizObjMaintenanceForm.Requery() and you'll be in line with the upcoming version:
LPARAMETERS tldonotrequerychildren,tldonotrefreshform
LOCAL lnRetVal
lnRetVal = DODEFAULT(tldonotrequerychildren,tldonotrefreshform)
IF ThisForm.oBizObj = ThisForm.pgfBizObj.Page1.CListOneToManyObj1.cGridList1.oBizObj
This.SetGridEnabledStatus(!ThisForm.pgfBizObj.Page1.CListOneToManyObj1.cGridList1.oBizObj.lNoRecords)
ENDIF
RETURN lnRetVal
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com