Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo in a grid problem
Message
De
10/10/2003 16:29:49
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00837659
Message ID:
00837663
Vues:
26
The Column's ControlSource property sets this value for all child controls that have a ControlSource themselves.
You do not need to set it for the contained controls. Interesting that it throws an error when you try.

>I have the following code that fill a grid. The problem I have is with the line .Column3.wscombobox1.controlsource = ...
>Err.mess.:Parent object will not allow this property setting for ffecost.wsgrid1.column3.wscombobox1.ControlSource.
>
>WITH THISFORM.Wsgrid1
> .RecordSource = "cur_ffecost"
> .Column1.ControlSource = "cur_ffecost.invcode"
> .Column2.ControlSource = "cur_ffecost.ecost_mnt"
> .Column3.ControlSource = "cur_ffecost.ecost_mnt_cur"
> .Column3.wscombobox1.ControlSource = "cur_ffecost.ecost_mnt_cur"
> .Column4.ControlSource = "cur_ffecost.vendorcode"
> .Column5.ControlSource = "cur_ffecost.vendorname"
> .Column6.ControlSource = "cur_ffecost.ref"
>ENDWITH
>
>The same control, out of the grid, works perfectly:
>THISFORM.wscombobox1.ControlSource = "cur_ffecost.ecost_mnt_cur"
>
>I cannot figure out what is happening here ?
>
>Thanks for any help
>Eric
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform