Bernard-
>Got a weird problem with my VFP app. It was a VFP6 app that I ported to VFP9.
>
>I have a form with one grid. After renaming one of the user-defined methods of the form, the grid seems to be destroyed at runtime. Stepping through the code, it seems the column objects were not created, and only the grid exists.
>
>Is this a known issue? How do I rename that method?
Was renaming the method and changing any code references to the method the only change you made between the grid working and not working? Are you sure the grid is being destroyed, and just not being built in the first place? For example, after the form is finished with its init, is the RecordSource set to what you expect and is the RecordSource populated? What happens if you reset the RecordSource?
ThisForm.MyGrid.RecordSource = myCursor
for example. You probably know that the classic cause of a grid being destroyed is requerying the RecordSource without first setting the RecordSource to "".