Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Center Row in Grid
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00643593
Message ID:
00643731
Views:
12
>Hi!
>
>You can use just "DoScroll" method of the grid to force it scroll.
>
>In addition, there is a nice FAQ article that explains how to refresh grid after change of the order of records: FAQ#8001.

Nice plug :)) He-he..

>>>Hi!
>>>
>>>Just remember the record position before requery, or remember ID key of the record. After requery move record pointer back to that record (if possible), or search records with remembered ID key. After record pointer changed in data source, just use Grid.Refresh method call. This usuall refresh grid and centers view to the current record in the grid's record source alias.
>>>
>>>HTH.
>>>
>>Hi Vlad,
>>this was my initial try.
>>It works as long as the row is not topmost on grids visible part.
>>This sounds silly but I do some change of order. (moving a specific record "up" or "down" in order). So the user can press a button 'Down' and the record goes downwards in order.
>>If I start with the very first record it will allways be on top of visible part of grid until it is at bottom. If I move this upwards it remains on top of grid's visible part. I need to scroll the grid vertically, after that it works until I reach top.
>>Also if the grid displays a part of cursor with records beyond visible area and I select the first visible and play the "up" and "down" game it will always be on top.
>>
>>To determine new order I do some SKIP and replace, After that I go back to 'moved' record with =SEEK()
>>
>>I run VFP 7 SP1
>>
>>Agnes
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform