I am using the following code to add an object to grid column. Which works fine , but if loose the focus to this form and when regain the focus I have an error saying grid text1 is not available. So I would like to check if Command1 object exist for Grid1 one every time I refresh the Grid. Is there any command ofr it ?
.Command1.Caption = 'Delete this Item'
.Sparse = .F. && show the same button on all rows simultaneously
.HEADER1.Caption = "Delete Icode"
.HEADER1.Alignment = 2
.Visible = .T.
.READONLY = .F.