>thanks,
>I can get to the code in the container object fine but in run time
>when the grid object is added to my form and I try and double click on
>a cell it will not perform code in the 'text1' control.
>When I previous set up the form i just added a grid to it but now
>i want to use this grid in other forms so I just made it a container object
>and just use addobject() to place on my different forms. It used to
>work fine.
>
>In the grid.column1.header1.text1 i have in the dblclick method
>
>loform = createobject('frmnewform')
>loform.show(1)
>
>This code will never even hit..I have tested by setting step on and
>it will not even load debug.
Ronnie,
How do you setup grid after addobject ? If columns are reset (ie: columncount = -1) then grid would be recreated with baseclass text1 controls. To prevent before assigning recordsource set it to empty. ie:
with thisform.myGrid
.Recordsource = ''
.Recordsource = 'myTable'
endwith
Cetin