Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing A Grid On The Fly
Message
De
23/02/2001 17:58:55
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
23/02/2001 16:30:24
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00478467
Message ID:
00479099
Vues:
47
>>Dragan,
>>
>>I have tried this. I get the columns set up ok, but I dont see
>>any data.
>
>I've been checking some grids we have here (framework code) and it has a blank grid (no source for anything - grid, columns, textboxes, all blank), and it does set the grid source first, then the columns, and then sets the number of columns from 15 (as defined in the class) to the real number. Works all the time. Just try to set the columncount to something big enough, or to blank the grid source beforehand.
>
>Another possibility: the automatic refill of columns happens when you close and reopen the grid's source table - it destroys the columns and creates them automatically. I didn't say 'recreates' because it forgets the columns setup, and creates the default one-column-per-field setup. If you're creating a cursor, you'd better blank the grid.source (rowsource or whatever) before the old cursor gets closed. A better way still is to have a created cursor, zap it as needed and populate from another alias (selected cursor, table, whatever), just don't close it as long as your grid lives.

Addition: just step over the existing columns. It will create the automatic ones, but nevertheless just use them, overriding the column sources, withs and whatever you like, then set the number of columns to what you really use, i.e. discard the rest (or add as you go if you use up more than your actual field count). That is, if you stay at 'set the rowsource and live with automatic grid setup'.

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