Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple combobox in container class in a grid
Message
From
02/12/2005 03:46:06
 
 
To
01/12/2005 11:33:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01073785
Message ID:
01074057
Views:
17
>I am trying to create an entry form for the basic information for multiple/unlimited legs of a freight move. Each leg has a origin, destination, action and cost (as always, its really more complicated than this). I wanted to use a grid to control this using combobox in multiple columns, a row/record for each leg. The customer doesn't like this and wants me to cram additional fields in.
>
>I created a container class with a combobox in it (there will be multiple comboboxes if I can get this to work) and used it as the current control for the column in the grid.
>
>The column doesn't have a single controlsource anymore, so Bound doesn't function. Consequently, each row uses the save value for the combobox.
>
>I hope I explained this accurately enough. Any help would be greatly appreciated.
>
>Larry Morelli

I did something similar in our app. I have a grid where one of columns has to display value from different fields in one table based on value in underlying table. I add comboboxes on the fly when grid instantiated and every combobox is
filled with data when instantiated based on passed id. Then i set up the grid.DynamicCurrentControl to [this.mrefreshDC()]
and that method does nothing but returns name of appropriate comboboc based on value in table bound to the grid.
works perfectly. So, what you want to achive, can be done. and you don't need to put comboboxes into container. just add them in column's INIT and initialize their content on the fly.
HTH
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer
Previous
Reply
Map
View

Click here to load this message in the networking platform