How?
Regards,
>>Hi, I have a Maintenance Form that is not used to maintain a Database. Let me try to explain. The Form is used only for browsing the records. The end user can only view the records, but cannot Add, Delete or Change. I set the Enabled property of cmdNew and cmdDelete to .F., but cmdDelete is always being Enabled.
>>In cBizObjMaintenanceForm.Activate Method there is:
>>
>>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.
>>What should I do?
>
>One really strange way around it, if you're using application security, give it a security ID that'll never be used, like -1.
>
>Chris.