Hi, Sylvain-
>Thanks for your reply! I never taught of adding the Grid dynamically too since there was some code in there. I guess it could be a good time to use the BINDEVENT <s>
Glad you liked it, tho' the only reason I chose to do it programmatically was to make a runnable example. When you do it as you mention in the rest of your post, by using addobject during runtime on a visually created grid, you have to set object's visibility to .T. I know that you can see it, and that it's readonly, but it's the visible property that needs to be set. I just tried the scenario to be sure, and that does indeed seem to do the trick.
HTH.
>
>However, there is still a bug. The following code works fine
>
>
>CREATE CURSOR temp (l1 L)
>APPEND BLANK
>This.AddObject("Grid1","Grid")
>This.Grid1.COLUMNCOUNT = 1
>This.grid1.recordsourcetype = 1
>This.grid1.recordsource = "temp"
>WITH This.Grid1.Columns(1)
> .ADDOBJECT("check1","CheckBox")
> .CURRENTCONTROL = "Check1"
>ENDWITH
>This.Grid1.Visible = .T.
>
>but if I remove the This.AddObject("Grid1","Grid") line and instead drop a grid on the form, This.Grid1.Columns(1).Check1.ReadOnly is always .T. even if the column.Readonly property is .F.
>
>Thanks again for the workaround!
>
>Regards,
>Sylvain Bujold