Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid, strange behaviour
Message
De
24/01/1999 19:50:10
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonésie
 
 
À
24/01/1999 18:11:32
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00179634
Message ID:
00179674
Vues:
23
Hi Nancy,
Thanks for reply,

>Setting the columncount to -1, "specifies that the Grid control should contain enough columns to accommodate all the fields in the grid’s record source." (That's from the help.) Do you actually want to set the columncount to zero?
>this.resettodefault('columncount')
Also for Erik (thanks for the reply) ,
Actually I've enough problem with this grid repainting,
I'm building a grid with a crosstab recordsource, everytime the crosstab fires, grid always changes it shapes, so I made grid shapes programatically ,I put a blank grid to a form, then changes all the properties needed in grid.repaint() method, so everytime crosstab code fires, I have to make this.grid.recordsource to default (" ") and also columncount, then the grid repaint itself in repaint() method.
I also create a possiblity to add a new field or remove existing field to the grid.controlsource and that makes the grid have to add or remove column.

I set columncount=0 and recordsource=' ' before, but the result isn't good enough.
Well, this code actually too long for me to explain, but that's the global idea.

Grids don't have controlsources.
>this.resettodefault('controlsource'
Ooopss sorry I mean 'recordsource'


Senna.
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