Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Misbehaving Grid
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00056885
Message ID:
00056915
Views:
30
>>Hello,
>>
>>I have pageframe that has bound controls on the first page and a grid on the second page. The rowsource for the grid is a temporary cursor that holds any modifications made until the user clicks save and then the changes to the temporary cursor are committed to the table along with any changes to the bound controls.
>>My problem is that after the save button is clicked I can not make the grid have focus again. I can't click on the grid I cannot tab until the grid gets focus. I put some debugging code into the form and can tell that the grid's enabled and tabstop properties are true. I don't know what else to check. Every other control within the form can accept focus except the grid.
>
>Hi Paul,
>
>Is there any code in the WHEN method? If, for example the grid is disabled if there are no records, then your problem may be that you have changed your Select area and the code shows no records. The fact that you can neither click nor tab into the grid sounds more like a WHEN problem than an ENABLED problem.
>
>HTH
>Barbara

Barbara/Paul:

Might you want to try setting the grid's record source to "" at the beginning of the save code. Then set it back to the temporary cursor name after the code is executed. Sounds like the grid may be becoming "unbound" to the cursor.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform