Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox in Grid
Message
From
23/02/1999 17:00:23
Charlie Davies
McIntire School of Commerce
Virginia, United States
 
 
To
23/02/1999 16:43:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00189356
Message ID:
00190693
Views:
18
>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


Geoff,

Set Column.controlsource to vext.vext_code (table where the value will be
stored)
Set Column.Sparse = .F.
Set Combobox.rowsource = vex_cur.vex_desc, vex_code
Set Combobox.BoundColumn = 2
Set Combobox.ColumnCount = 2
Set Combobox.Columnwidths = 200,0


Hope this will help you.

Charlie
Previous
Reply
Map
View

Click here to load this message in the networking platform