Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid AfterRowColumnChange event not firing
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01178163
Message ID:
01178979
Views:
11
>>AfterRowColumnChange fired only when the grid have the focus.
>>
>>Check if the current active control lost the focus when the active page is changed,
>>I guess it doesn't.
>>
>>The second click on the grid force the lostfocus.
>>
>>This is a known Pageframe's bug.
>>
>>Check if the VFP application code set the ActivePage = .., use Page.SetFocus ( but Setfocus have another bug )
>>I doesn't remember exactly.
>
>
>I manually did a Grid.SetFocus() in the page's activate method and that seems to solve the problem. I agree that this is obviously a bug. I don't see how it couldn't be. When the record pointer moves in the grid, and the highlighting moves with it, yet the Before/AfterRowColumnChange methods don't fire .. it's a bug!!

Probably, your code used Grid.Refresh in some place. In previous VFP versions Setfocus was always 'required' to use instead of Refresh. Now in VFP9 it seems that most cases got fixed, but maybe some are still around.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform