Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keeping Optiongroup in a grid
Message
De
17/07/1997 01:46:46
Ron Tse-Jung Huang
Leader Professional Consulting
Shin-Chu, Taiwan
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00040164
Message ID:
00040373
Vues:
34
>>Dear sir,
>>
>>I used SelectSQL to generate a temporary table, and make it the record
>>and control source for a grid. The grid had one optiongrop added into
>>one of its column.
>>
>>Each time the SQL commanded executed, the table was regenerated, and the grid's source properties were assigned. However, it just showed the optiongroup successfully the first time SQL executed. After that, only values were shown onto the grid, and optiongroup disappeared. how can I keep the optiongroup in the grid?
>>
>>many thanks!
>
>After you requery or re-execute the SQL, try issuing:
>
>ThisForm.Grid1.Column#.CurrentControl=OptionGroup


I have tried to assign the currentcontrol to the optiongroup. When executed at the first time, there is no problem. However, after that, problem occured. An error message shows "Expression evaluated to an illegal value", when I did not addobject'ed an optiongroup programatically.(I have inserted an optiongroup into the grid when GRAPHICALLY implemented the form.)

Another way I tried was to issue an addobject command to add the optiongroup, and removeobject the textbox which was initially set as default control. Also I assigned the currentcontrol properties to the optiongroup. However, it did not work either, leaving gray shadow on the column.

Even only a refresh() method was triggered, the problems occurred.

Any comments about this?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform