Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid, Not Updating with ThisForm.Refresh
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00380349
Message ID:
00380947
Views:
30
>>>>I tried a ThisForm.Grid1.Refresh, but still no success. Does it have anything to do with calling it from inside the txtBox on the Grid? I can put code in a separate command button outside the grid to call the StartEdit method, do a ThisForm.Refresh, and it works.
>>>
>>>Maybe - try a
>>>
>>>grid.setfocus
>
>>Cannot call SetFocus from within a When, Valid, RangeHigh or RangeLow event.
>
>No, you'll have to do that in the method or the cell lostfocus. The setfocus usually does the refresh all by itself, with no refresh, in fact. I'm assuming your grid source is a table or cursor here. But also, as Barabara noted, if it's a view, you'll want to do a REQUERY().



The RecordSource is a table, and I am doing the SetFocus from within the StartEdit method. I think where I may be getting into trouble is the fact that the Call Stack starts with the grid txtBox.Valid and then the method gets called under that.
Chuck Henry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform