Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid
Message
De
23/01/2007 13:28:55
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Grid
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01167233
Message ID:
01188233
Vues:
27
>>Ed,
>>
>>it sounds like you change the recordsource of the grid like
>>
>>
>>*your query
>>.grid.recordsource = 'curSorName'
>>
>>
>>this will remove all columns and create new one. The newly created will know nothing about your preset.
>>
>>consider the use of a CursorAdapter and bud the cursoradapter.alias to the grid.
>>
>>Agnes
>
>Agnes,
>
>I have a CursorAdapter and its alias is a recordsource for the grid. When I execute CursorFill(.t.) for the CA, the grid becomes blank. Should I use safe select approach here or there are other alternatives?
>
>Thanks in advance.

You shouldn't play with recordsource when focus is on grid. If recordsource is 'replaced' then you should call grid setup code (set column.controlsources etc.)
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform