Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox.value in grid gets incorrect value
Message
From
07/08/2006 11:56:40
 
 
To
07/08/2006 10:20:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01143347
Message ID:
01143490
Views:
15
The controlsource you mention above is for the grid, right?

Yes - for the grid column with the combo in it - that way you can leave its Sparse property set to .F., but still display the descriptive text from the lookup table instead of the foreign key field in the grid's RecordSource when the cell does not have focus.

Where do you update the recordsource table? In the combobox interactivechange?

You do not need to write any code to do this - you get it for free. I am assuming that the field in the grid that you are updating is a foreign key reference to some other ( lookup ) table. All you need to do is set the combo's ControlSource to the foerign key field in the grid's RecordSource.
Previous
Reply
Map
View

Click here to load this message in the networking platform