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