Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why is my grid acting all weird?
Message
 
 
À
01/03/2012 13:52:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 7
Divers
Thread ID:
01536964
Message ID:
01536965
Vues:
73
This message has been marked as a message which has helped to the initial question of the thread.
>Hi All
>
>I've got a cursor that has a couple of memos in it, so I set up a grid for the non-memo and 2 editboxes for the memo fields on my Search form.
>
>The user can change the contents of the cursor, so in the Click method of the "Search" button I've got
>
>Thisform.GrdLookup.RecordSource = ""
>thisform.GrdLookup.RecordSource = "LookComb"
>
>When the grid first displays, it's showing the 10 columns I want it to show with header captions, etc, but after the 'Search' button is clicked, it displays as if I'd just thrown the cursor at the grid. Yes, I've got each column 'hooked' to its respective field. Why is my grid doing this? Other than to make me a little more crazy, I mean
>
>Dorris

Use safe select approach instead.

http://weblogs.foxite.com/andykramek/2005/03/19/using-a-safe-select-to-preserve-your-grid/
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform