>Hi,
>
>I had done a work around but went back to try your suggestion but I can still see the object that I Remove. This is my code:
>
>Thisform.grid.column1.ControlSource = "curTest.lSelected"
>IF TYPE('Thisform.grid.column1.text1') = 'O'
> Thisform.grid.column1.AddObject('chklSelected','acc_checkbox')
> Thisform.grid.column1.chklSelected.Visible = .T.
> Thisform.grid.column1.CurrentControl = 'chklSelected'
> Thisform.grid.column1.RemoveObject('text1')
> Thisform.grid.column1.Sparse = .F.
>ENDIF
>
>In the debugger TYPE('.column1.text1') is showing 'O' after this code runs.
>
>Any ideas?
Not really. Where's this code? I'm doing mine in grid's .init(), before setting the grid visible. That may matter, or it may not. I think the moment the grid becomes visible it gets a .text1 into every column it has.
Also, if your column is a subclass of (or instantiated from a class) a column which has a .text1, it may refuse to remove a class's member.