Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo in grid doesn't show value
Message
De
29/07/2011 10:36:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01519540
Message ID:
01519583
Vues:
52
>>>Anyway, the last column's problem still remains.
>>
>>Here it is one example form.
>>It is NOT a bug free form :-))
>>Just wanted to show combos in grid.
>
>I see, interesting - I'll try similar idea with BackColor.
>
>One difference in the last column - originally it doesn't fit, so I need to resize the form to see it. Also, the field stores S, E, C and I want to show description (so, the combo consists of 2 columns). Can you please revise the sample taking into account these two things?
>
>Thanks in advance.


Naomi,

I suppose if you change the code in the init to
With Thisform.Grid1.Column4.Combo1
*.AddItem("Start Seat - S")
*.AddItem("Center Seat - C")
*.AddItem("End Seat - E")

	.AddListItem( 'S' )
	.AddListItem( 'Start Seat', .NewItemId, 1 )
	.AddListItem( 'C', .NewItemId, 2 )
	.AddListItem( 'Centre Seat' )
	.AddListItem( 'E', .NewItemId, 3 )
	.AddListItem( 'End Seat')

Endwith

Thisform.Grid1.SetAll("DynamicBackColor", "thisform.RefreshCombo()", "Column")
you can enjoy a good night rest?

Regards,

Koen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform