Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid afterrowcolumnchange not changing?
Message
 
 
À
08/09/2008 09:43:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2008 Server
Database:
Visual FoxPro
Divers
Thread ID:
01345711
Message ID:
01345730
Vues:
14
>Hi All,
>
>I have a two grids, one grid controls what is in the other grid, or is suppose to.
>
>the code I have in the AfterRowColChange method is this:
>
>LPARAMETERS nColIndex
>DODEFAULT()
>LOCAL llok, lcclient, laoption(1)
>lcclient = ccontact.clientid
>laoption[1] = ccontact.contactid  && when I stop it here, the record pointer is still on the first record, not the record I clicked on the grid.
>THISFORM.cpageframe1.page1.grid2.RECORDSOURCE = ""
>llok = settables(lcclient, THISFORM.DATASESSIONID, "CRACT", @laoption)  && this gets the correct records for the 2nd grid
>THISFORM.resetgrids(.T.)  && this sets the grids back to the correct recordsources
>SELECT 'crscustmer'
>THISFORM.REFRESH()
>
>
>Any ideas why it is not working for me?
>
>If I comment out everything, but the 1st two lines, the first grids shows that it is on the other records.
>
>TIA,
>Beth

Hi Beth,

You're doing something too complex here. Why do you need to reset recordsource for the grid? Also you don't have to explicitly call DODEFAULT(), you may comment it out, nothing will change.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform