Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01157960
Message ID:
01157965
Vues:
24
>I've done the following since VFP7 and it has always worked. Now it sometimes doesn't. The error I'm getting is that the first column doesn't exist where prior to the RecordSource being set to '' it did.
>
>1. I set up my grid (including columns, etc) without a recordsource (almost all of them are this way)
>2. I have a populate method on my grid to be called that executes a query that sets up the sorting etc and attaches the recordsource to the grid.
>3. In this Populate method, I do the following:
>
>
>this.Recordsource = ''
>{Execute sql statement here}
>this.RecordSource = 'MyCursor'
>
>{reset Controlsources for Columns}
>this.Refresh()
>
>
>Now most of my grids still work, but I'm having a few that refuse to follow. I've checked everything to ensure that the problematic ones are setup the same as the ones that work. No differences except columns. I'm trying to avoid redoing the problematic grids.
>
>TIA
>
>Richard

Hi Richard,

It's really strange, that your message appears exactly on the second day when the same problem appeared on the Russian forum http://forum.foxclub.ru/read.php?29,228240,page=all

No solution suggested there, unfortunately.
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