Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo with BoundTo = .T. in Grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00150601
Message ID:
00155396
Vues:
22
>>>>I have similar grid working OK, right before my eyes, so ... however, I see one more indication in your replies. Character-integer combo should work Ok, but it might be that your grid itself got corrupted. I saw two times in my VFP experience this mysterious grid bug: when cell gets a focus it becomes empty. I tried twice to debug this situation and had to kill the grid completely and rebuilding from scratch and it worked Ok. I understand that it looks like fairy tale, but it was really so. The interesting part of my experience was that any normal grid dropped to this from became bugged at once, i.e. something corrupted on form level, and form itself should be rebuilt from scratch.
>><<
>
> ADD OBJECT form1.grid1.column1.combo1 AS combobox WITH ;
> Height = 24, ;
> Left = 0, ;
> Style = 2, ;
> Top = 53, ;
> Width = 100, ;
> BoundTo = .T., ;
> Name = "Combo1"
> PROCEDURE combo1.Init
> for n=10 to 1 step -1
> this.additem(alltrim(str(n)))
> endfor
> ENDPROC
>
>Table1.cnt is Integer containing various values from 1 to 10. I specifically filled combo in reverse order to eliminate ItemId confusions.

Sorry about the long delay in replying. I finally tried what you show here and you're right! If I build the list via AddItem and AddListItem, the Character/Integer Combo binds and displays correctly. However, my RowSource is a Cursor (RowSourceType = 6). With that I get the results I described.

This sure seems like a bug to me. Why MS makes its internal value with 2 decimals when bound to an integer and using an integer for the RowSource is beyond me! If you could find the time, can you verify my results?
Bill Armbrecht
VFP MCP
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform