Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid
Message
De
21/01/1999 13:51:12
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonésie
 
 
À
21/01/1999 10:14:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Re: Grid
Divers
Thread ID:
00178390
Message ID:
00178609
Vues:
34
>Grid.Refresh is not the best place for this operation, because it can fire internally sometimes. I think that separate custom method e.g. Thisform.RestoreGrid would work safer.

Actually I did that before, and it gave me the same result.
I put the code in Grid.Refresh before I gave up and scream for help :)

>Also, I don't quite understand: seemingly you run cross-tab query and at the same time you have columncount=3 (or you reset it on fly?).
That just for example, Edward.
Actually I build a 2 field table and a 2 column grid, the cross tab fired from a listbox.

and it look like this :
Grid1.ProgrammaticChange
Parameter cSelect,cOrder
Do Case
Case cSelect=1
Select * From myTable1 WHERE UPPER(ALLT(orderno))==UPPER(ALLT(cOrderno)) Into myTempCursor
Case cSelect=2
Select * From myTable2 WHERE UPPER(ALLT(orderno))==UPPER(ALLT(cOrderno)) Into myTempCursor
Endcase
DO vfpxtab WITH 'mytable'
This.Refresh()
Senna Dwipayana
Being good is better
Being better is a bless
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform