Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo-Box in grid (VFP3)
Message
De
29/11/1997 00:55:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00061812
Message ID:
00062838
Vues:
66
>>>>>>I want to place a combo-box in a cell of a grid displaying values of another table. It was no problem to place the combo-box in the cell - but it doesn't show the desired data and it behaves quite strange, if I change the value of one row. My master-table contains a keyvalue (person.vereinlfdnr) and the child-table uses this as primary-key (verein.lfdnr). Now I want to display the value of verein.bezeichnung in the combo-box (depending on the values in person.vereinlfdnr) and want to be able to change this values for every person. Any idea how to do this ?
>>>>>What do you mean when you say the combo box is behaving strangely? What exactly is it doing? What is the RowSource for the combo?
>>>>The row-source for my combo is a field of a table (verein.bezeichnung), the source-type is 1-Alias. If I'm changing one value (in onw row), all the values in the whole grid change.
>>>Do you mean that all the values in that column of the grid change? Or do you mean that all the values in *all* columns of the grid change? If it is just the column that has the combo box in it, does this column display the same value for all rows? Copuld you post some of the code in your combo box?
>>>
>>>Marcia
>>Marcia...please can you help me?
>>I want the same problem with de combobox, when i choose a value in one row in the cell of the combo, all the values
>>in the column of the combo change, and the same values for all rows.....what could it be?
>>thanks
>
>To use a combobox in a grid all you need to do is add the combobox object to the grid column. Then, change the column's CurrentControl property to the name of the combobox. Finally, set the Sparse property to .F. for that column. That's it. Is this what you are having problems with?

I did all that you said .....but the problem insist, when i choose the value for the first cell, this value appear ok , but when
i pass to the second row or the third....all the values in the column change to the last value.

What can i do?..
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform