Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid refreshes differently depending on activation
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Grid refreshes differently depending on activation
Miscellaneous
Thread ID:
00828251
Message ID:
00828251
Views:
60
Hello,

I have a problem and I can't figure out, why.

I have a grid on a form. The grid has a method "StartFindExtended". This method opens a form, the user enters some values he wants to look for, and if there is a record corresponding with this values, we move to this record and the grid is refreshed.

It works fine as long as the method "ThisForm.grdGridName.StartFindExtended" is called from a "click" - Event of some control in the same form.

Now I've made a toolbar and put a button there, whoes "Click" - event is bound to the "StartFindExtended" - Method of the same grid

As soon as the method "StartFindExtended" is called this way, the grid stops refreshing properly. It still "scrolls" to the found record. The found Row is shown in the middle of the grid. But the RecordMark doesn't move to this row and the "old" row also stays highlighted, even if it is not more visible in the grid.

The only way to make the grid properly refresh is to make the form get Focus, but that is what I don't want...

What is the difference in calling the method from some event "within the form" and from the toolbar?

Thanks
Alexander Lerner
a_lerner@heinrich-schmid.de

The life is somewhat easier than it seems to be.
Next
Reply
Map
View

Click here to load this message in the networking platform