Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Misbehavior of a Combo Box in a Grid control
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Misbehavior of a Combo Box in a Grid control
Miscellaneous
Thread ID:
00388459
Message ID:
00388459
Views:
49
Hello, everyone

I have combo box as a current control of a column in a grid control of a form.
The properties of the grid control are set as follows:
RecordSourceType = 1&& Alias
RecordSource = 'B' && Table B
Columns = 2
Columns(1).controlsource = 'B.f3' && the field type is "I"nteger.
Columns(2).controlsource = 'B.f4' && the field type is "N"umeric.

The combo box belongs to Columns(1).
The properties of the combo box are set as follows:
Rowsourcetype = 2 &&Alias
Rowsource = "A.f1, f2" && Table A, field f1, field f2; f1 is type "C"haracter and f2 "I"nteger.
BoundColumn = 2
BoundTo = .t.
Controlsource = "B.f3" && is set by it's parent

When a user changes the value of combo box, it updates the value of "B.f3".
The problem is that whenever the combo box GotFocus, the selection of the combo box disappears. When it looses focus, the selection reappears.

Does anybody know why? Any help will be appreciated!

Dawa
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Next
Reply
Map
View

Click here to load this message in the networking platform