Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo-Box in grid (VFP3)
Message
 
To
28/11/1997 15:41:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00061812
Message ID:
00062776
Views:
64
>>>>>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?

Michael G. Emmons
memmons@nc.rr.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform