Here's what I found out;
I have the following in thisForm.Setgrd() event, which I run from the Init() event of the form:
* -----------------------------------------------------------
thisForm.grd.RecordSource = 'Bill_Cus'
thisForm.grd.grcSelect.ControlSource = 'select'
thisForm.grd.grcAcc.ControlSource = 'Acc_Id'
thisForm.grd.grcLast.ControlSource = 'Last_Name'
...............
thisForm.grd.Refresh()
* -----------------------------------------------------------
I have to have this because I need to build the files from scratch when I build the data, so during the creation of the files, I put all the above to "" to decouple the grid from data files.
Now, In vfp5, this used to work just fine having it run from the thisForm.Init() event.
Now, I just figured out that if I execute this setgrd() event afterwards say for example, from a click event of some label, after the form is completely instantiated, then the grd works and is not locked up.
So, the problem under vfp8 is that this event does not work when it is run from the thisForm.INIT() event and has to be executed afterwards. I even put the setgrd() event on the GotFocus() of the first field that gets the focus on this form, and it still doesn't work.
But I need the Grid to work as the form is loaded. Can't put another button on there with the caption "Click here if you want to change the stuff on the grid" !. Kind of odd behaivior.
Any clues ?
Cyrus