Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another oddity, this time grid
Message
From
17/02/2020 11:53:20
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Another oddity, this time grid
Miscellaneous
Thread ID:
01673086
Message ID:
01673086
Views:
116
I have a grid which I use for navigation. One column, just titles, going through table of articles. Click anywhere on it, and the article details fill the rest of the form. Did so for about sixteen years.

Then I fixed something unrelated and got into a situation when the other methods of navigation (searchbox, doubleclicking on editboxes with pseudolinks to other linked articles) work just as they always did, only this grid would be one behind. I.e. I click on article C, it still displays the last article. I click on article F, it now shows article C. Hmmm... and there's the proper reload/refresh in the ARCC of the grid, so wtf? And why does it still work, but one behind?

Turns out the BRCC fires, and it calls save/refresh, so the previous record is finally shown. But then the ARCC actually does not fire. Weird, because the grid has the visible markings for the current record, which is dutifully following the mouse (or arrow keys, if used).

This annoyed me so much that I just couldn't resolve it yesterday, lest I make it worse by needlessly fiddling with code. This morning I eliminated a few suspects and... aha, finally: grid.AllowCellSelection=.f. - dunno why, and even so, why did the current record still change and the current record marker (highlightStyle=2) go with it?

Well it did, the row still got selected, BUT the ARCC wasn't firing. Put grid.AllowCellSelection back to .t. and set it .readonly=.t. instead. And it just started working, magically.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Next
Reply
Map
View

Click here to load this message in the networking platform