Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GRID: After a grid refresh, the record pointer is not on
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00201947
Message ID:
00201953
Vues:
16
>Unless I clic on the grid header, the record pointer doesn't show on the screen. How can I show my current record?
>
>Zillion thanks.
>Eric.

This is code I have for positioning the user on the record in the grid

* The user chose an ADC to replace another one in the list
* so lets select the ano table and replace the value to it
SELECT ano
GOTO nWhereWereWe
REPLACE ano.anonorkey WITH THISFORM.nGotoRecordKey
REPLACE ano.anoadckey WITH THIS.cTableFieldValue
* This is so the grid will display correct values, even though we updated the
* keys the view will only display what we set as the view will not be requeired
REPLACE ano.adcnumber WITH adcview.adcnumber
REPLACE ano.nsndodic WITH adcview.nsndodic
REPLACE ano.nsnnsn WITH adcview.nsnnsn
REPLACE ano.adcnomen WITH adcview.adcnomen
* This will set the index up to display correctly the new replaced record
* and position us on it, hopefully
SELECT ano
LOCATE
LOCATE FOR ano.anoadckey = THIS.cTableFieldValue
* Lets set focus on the grid so the user will be positioned on the record
*
ThisForm.C40pgAdcs.Page2.C40grdAno.SETFOCUS()

As you can see from above, I locate the record that the user replaced and set focus on the grid..

HTH
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform