Hi!
Look to FAQ#8019, Grid Reconstruction Behavior. Probably your columns in grid got reconstrycted bu VFP because some reason.
>I've got a weird problem to which I can't find the cause.
>
>I have a form with multiple controls, including a grid. This grid has multiple columns, and in one of the methods that are called when the data is requeried, we reassign properties to this column. Most of the time, everything works fine.
>
>However, there are 2 forms which seems to cause a problem to this one. I just have to open any of those 2 forms, close it, and then open my above mentionned form. When it gets to the code that reassign properties, it state that "object colImp not found" (colImp is of course the name of the colum). If I go in debug, all the columns now have the default names (column1, column2, column3, etc.)
>
>This only happens if I open one of the two other forms. Opening none or any other form does not cause the problem.
>
>I've worked around the problem like this:
>
>
>IF TYPE("THISFORM.GrdDT.ColImp") == "O"
> THISFORM.GrdDt.colimp.ControlSource = [IIF(tmpDtJour.imprime,"","Ê")]
> THISFORM.GrdDt.colimp.Sparse = .F.
> THISFORM.GrdDt.colimp.text1.FontName = "WebDings"
>ELSE
> THISFORM.GrdDt.column2.ControlSource = [IIF(tmpDtJour.imprime,"","Ê")]
> THISFORM.GrdDt.column2.Sparse = .F.
> THISFORM.GrdDt.column2.text1.FontName = "WebDings"
>ENDIF
>
>but I still don't understand what's going on...
>
>TIA!
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.