Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids & CursorAdapter CursorFill()
Message
 
 
À
06/01/2011 21:57:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01494587
Message ID:
01495098
Vues:
48
>Naomi,
>
>I always use an Alias for the grid's RecordSource and Alias.FieldName for the grid's controls.
>
>I did use Safe select approach with the CA. The grid's RecordSource was a cursor created in the Load method of the form. I then used CA for the search and even re-builded its SelectCmd. But since the grid's RecordSource was a different cursor, manipulations with the CA didn't affect it at all.

>
>In my case, the CA object is passed to the form, so, it is in the Init event when the cursor was created. The form also rebuild the SelectCmd prior to another call to CursorFill(). The grid is programmatically a tempcursor RecordSource with exactly the same structure as the CA cursor. So, whenever CursorFill() is called, it tells the grid to zap the temp cursor, and append from the newly CursorFill'ed CA. Then the grid refreshes, GOes TOP, and SetFocus().
>
>Dennis

Are you adding a grid in the Init in run-time when the cursor is created? Otherwise I don't understand. The grid must have a RecordSource, what is its RecordSource ?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform