Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox in Grid
Message
From
23/02/1999 16:48:47
 
 
To
23/02/1999 16:43:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00189356
Message ID:
00190684
Views:
17
>Barbara-
>
>Thanks for the reply. I have been trying to get several things to work but have been unsuccessful. Here is what I have now:
>
>1. I defined a cursor called vex_cur with 2 columns (vex_code, vex_desc) in the init event of the form.
>
>2. In the combobox I have the following defined:
> - columncount: 2
> - controlsource: vext.vext_code (table where the value will be stored)
> - rowsource: vex_cur
> - rowsourceType: 2- Alias
> - Style: 2-Dropdown list
>
>I cannot get the combobox to drop down in the grid. Also, if the user enters something that is not in the list I will add it to the cursor in the valid event (I assume this is the right way to do it). I am hoping that I can get this figured out and appreciate your help.
>
>Have a good day-
>
Geoff,
Form init event will happen after all controls init event, so your settings will not pick up actual cursor. Therefore you should force the combo after the cursor is available i.e. fire:
Combo.Rowsource="vex_cur"
Combo.Requery
Combo.Refresh
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform