Hi Adrian.
Once you Re-Assign the grid.Recordsource, VFP will auto-release all column objects..
including headers and textbox controls etc.
So, if you really want to re-assign grid source!
You need to make some textbox controls class and replace them after re-assignment!!
In File Section, there is a Bwtable.zip (Browse DBF tables in Current directory)
Download it and have a look! ^_~
>Thanks, Erik. That's so simple it hurts.
>
>Now a new problem; same grid.
>
>The underlying table is a cursor I generate from a form method. The data changes, I rebuild the cursor using the form method. I do
>
> thisform.grid1.recordsource = thisform.grid1.recordsource
>
>to force the grid to refresh. This works, but now my grid cells don't respond to the double-click event any more. Oddly, my column formatting is lost also.
>
>Clues?
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.