>IF ThisForm.oBizObj = ThisForm.pgfBizObj.Page1.CListOneToManyObj1.cGridList1.oBizObj > This.SetGridEnabledStatus(!ThisForm.pgfBizObj.Page1.CListOneToManyObj1.cGridList1.oBizObj.lNoRecords) >ENDIF >>And in SetGridEnabledStatus:
>LPARAMETERS tlEnabled > >This.pgfBizObj.Page1.cmdDelete.Enabled = tlEnabled >This.pgfBizObj.Page1.CListOneToManyObj1.cGridList1.Enabled = tlEnabled >>That´s why cmdDelete is always Enabled, because there are records in cGridList1.