Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid control
Message
De
17/03/2005 07:46:38
 
 
À
17/03/2005 06:33:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00996622
Message ID:
00996706
Vues:
14
It di NOT get worse, it got better. They fixed a possible problem.
Most of use set grid properties in code anyway, setting the recordsource to [] befor a requery of the underlying table.

It just got better.

My 2 cents :-)

Peter

>>>Hi all,
>>>
>>>I use a grid called course in one of my forms where I set all the properties of my grid.
>>>
>>>I modify my table called tblPRDET in my form and reset the grid recordSource to the table name. Each time I do this I lose all the previously set properties of my grid.
>>>
>>>Any ideas why this happens?
>>>
>>>THISFORM.pgf1.page2.grdCourse.RecordSourceType = 1
>>>THISFORM.pgf1.page2.grdCourse.RecordSource = "tblPRDET"
>>>THISFORM.pgf1.page2.grdCourse.Enabled = .T.
>>
>>If the format of grid doesn't need any change:
>>
>>with THISFORM.pgf1.page2.grdCourse
>>  .RecordSource = ""
>>  * Do modifications
>>  .RecordSource = "tblPRDET"
>>endwith
>>
Cetin
>
>Cetin, probably you known,
>but on VFP9 the grid class is gotten worse.
>Help doc:
>
>Grids and RecordSource and ControlSource Properties
>In Visual FoxPro 9.0 there is a change in Grid control behavior.
>When the RecordSource property for a Grid control is set,
>Visual FoxPro 9.0 resets all ControlSource
>properties to the empty string ("") for all columns.
>In earlier versions of Visual FoxPro,
>the ControlSource properties were not properly reset,
>so problems could occur when a RecordSource with a different structure was later bound.
>This change may impact scenarios involving Access and Assign methods or BINDEVENT( )
> function calls made against a Grid column's ControlSource property.
>
>
>Fabio
Peter Cortiel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform