Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to keep grid records in order as key field is change
Message
From
24/01/2005 17:53:11
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
23/01/2005 21:00:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00979904
Message ID:
00980227
Views:
40
>Hi,
>
>A grid shows rows of an ordered table. As new records are added they show at the top of the grid, as they should. When the key field is changed I'd like the current record to show in the appropriate relative position in the grid at about the middle visible row of the grid. How do you accomplish that?

My regular trick to get the grid in order when the order of records changes is to GO to whichever record I want, lockscreen the form, refresh the grid, setfocus to anything else on the form, set focus back to grid, lockscreen off.

As for putting your record to the middle, grid.doscroll(0) about rowcount/2 times.

back to same old

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

Click here to load this message in the networking platform