Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why does a grid display search results in the middle?
Message
From
03/01/1998 17:24:19
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
02/01/1998 12:44:20
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00068309
Message ID:
00069268
Views:
59
>I'm in a grid column 1 row 4. I tab into column 2 row 4. >The GotFocus event of the control resets the table order (inGrid in case you' re >wondering). >Now I don't want the cursor to jump around the grid. IOW, since the cursor w as >on row 4 when I tabbed, >I want it to still be on row 4 in the new column, but still the same record. > >I worked on this 1 1/2 years ago but never got it working quite right. I got s >omething about 90% acceptable. > >I repeat, this is more of a challenge that a request. See my message of few days ago, I'm doing something similar (just not with inGrid, I'm using grid form's keypress event to manipulate the grid), so when I switch order the grid reorders keeping the TOP record untouched, not the current record. The trick that did it was form.activate (grid.setfocus worked too, but can't use it from other form's valid event). Maybe you should check for the recno() in BeforeRowColChange, and keep it somewhere (a grid property, maybe) so after tabbing you forcedly GoTo it, and then form.activate before the grid refreshes. Worked for me...

back to same old

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

Click here to load this message in the networking platform