Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox inside Grid refresh problem
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP3
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01514030
Message ID:
01514084
Views:
35
>Here is the scenario:
>
>I want to have a combobox inside column 3 of a grid. The combobox will have different values for choices depending upon the 'category' value in column 5 (values for column 5 are A through D).
>
>Here is a link to the zipped files for a test form of the scenario.
>
>http://www.vulcaninc.com/library/ut/test2/
>
>The way I attempt to do this is by setting the DynamicCurrentControl for column 3 to the required combobox.
>
>What is happening to me is when I click on comboboxes in the grid, other combobox values disappear. I'm sure this has been encountered before.
>
>Thanks for you time...
>
>Edit : This is on Windows XP SP3 not Windows 2000 SP3


Hi.

Remove the line
thisform.grid1.column3.Sparse = .f.
in thisform.grid1.init and your textbox with correct value will be shown. The combox will only be shown when you click on the textbox. The new seleceted value will populate the textbox.
Suppose this is the behavior you are after.

Regards,

Koen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform