Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Grids
Versions des environnements
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01036745
Message ID:
01036761
Vues:
15
Jack,

A better question might be, "How do you get them out of sync?" :)
Seriously, the grid should be bound to the cursor/table/view and the other controls on the form should also be bound to that same cursor/table/view. What I suspect is happening is due to refresh issues. Once you change rows in the grid, you still see the previously selected row's data in the non-grid controls, right? What happens if you click into those controls? Does the right data appear? If so, then you just need to refresh the form from the grid's AfterRowColChange() something like this:
* Only refresh the form when the row changes
IF INLIST(this.RowColChange, 1, 3)
  thisform.Refresh()
ENDIF
HTH,
Chad

>When I am in a grid and am scrolling down and want to show a record, how do you make sure the underlying record is the same? When I scroll down and highlight a row and click to show the record, it shows the previous record in the recordsource. How do you keep them in sync.
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform