Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GRID - DynamicCurrentControl - Is there a limit?
Message
 
 
À
01/10/2001 15:44:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00562699
Message ID:
00562735
Vues:
21
>>What about:
>>DynamicCurrentControl='myTable.Nome_Object'. It should work just fine.
>
>>I aslo agree with Keith's suggestion, but you should make changes in >AfterRowColChange. At least, this is how it works for ReadOnly property.
>
> Thanks, but i will try to explain my problem better. I need to have an edition grid where a column has different objects in each line, these objects are linked to different fields from other table.
>
> I am creating on-line an object container and adding a Combobox, Textbox, checkbox and etc..., depending on the type of the field to be attributed in ControlSource.
>
>Regards

Are you sure, you want to have this headache? Containers in Grid make grid very messy. Anyway, judging by the expression, you used, you can either have a field in a table called CurControl, or a global variable (or form's property). This field (variable, property) would hold the DynamicCurrentControl for this record (that's why Table approach is preferable, if Sparse=.f.), and your DynamicCurrentControl would be just myTable.CurControl or thisform.curControl.

Otherwise I would place your container on form instead of messing with grid.
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