Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBoxes in Grids
Message
From
27/08/1999 04:26:23
 
 
To
26/08/1999 14:15:47
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00257032
Message ID:
00258289
Views:
30
>Sorry, once I thought about it, i'll need to have the text in my view and set the combobox.boundcolumn to the text field and in the valid event set the FK field.

Ok, try next construction.

In main prog:

use Invm
use Itty order iid in 0
sele Invm
set rela to IttiId into Itty
oForm = CreateObj...

In class designer:
Grid.RecordSourceType = 2
Grid.RecordSource = "Invm"

Grid.Column1.ControlSource = "Itty.cName"
Grid.Column1.Sparse = .T. - default

Grid.Column1.Combo1.RowSourceType = 6
Grid.Column1.Combo1.RowSource = "Itty.cName"
Grid.Column1.Combo1.BoundTo = .T.
Grid.Column1.Combo1.BoundColumn = 1

In Grid.Column1.Combo1.Click():
iCode = Itty.Iid
sele Invm
repl Invm.IttyId with iCode

I think that you'll see what you want.
Regards,
Dmitri Alexandrov
Previous
Reply
Map
View

Click here to load this message in the networking platform