Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling fields displayed in a grid without columns
Message
De
28/10/1998 14:59:19
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00151310
Message ID:
00151862
Vues:
27
>> For the grid you need to set the columncount to the number of fields you want in the grid and then you need to set the controlsource property to a field in your table for each column in the grid. This way you display only the fields you want and in the order you want also.
>>
>>Mark
>
>Is there a way to do this without columns?

Here's a quick'n'dirty way:

grid.columncount=-1

grid.init:
select (the_alias)
set fields to all like * except [insert name of field to omit here]
this.recordsource=the_alias

Tried, works. You may want to set fields to ALL elsewhere, because with SET FIELDS the field is not invisible to grid only, but to the rest of the app, too. You may also overcome this opening The_alias once more with all the fields, and keeping them in sync.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform