Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Center Row in Grid
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00643593
Message ID:
00643740
Vues:
11
>>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..

Right. I saw another thread on this topic, but was not able to understand for the first time that things in there are really about the same as in that FAQ article ;) I really hope this will be helpful <s>.

>
>>>>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
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform