Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 6 - Grid /column Controls
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00185196
Message ID:
00185376
Views:
15
>This is what i am doing.
>For this application, a field can be of two types. One is a part type and this is the default. This is filled in with the default part. However, sometimes this field contains a 3 letter code..
>I need to have this functionality..
>If it is a part do nothing.
>If it is not the part, validate it against the codes table.
>I have a special grid with a property that hold the part value. This is the default for the field and is automatically filled in the when event of the text field.
>In the lostfocus event of the text field, i compare the value to the stored value above and if it is the same I just pass to the next column.
>
>If it is not, I am validating the input to the code table. This works fine if the the codes match. (pass to the next column)
>However if they do not match, I am unable to get the combo box to appear and allow the user to select an item from the list. (I know it gets the focus, as I have watched it in the debugger.. however the combo is not visible)
>
>How do activate the other control in the column.. i.e the combo box?
>
>TIA
>
>Mike

Change Column.CurrentControl.

Or, Set Column.DynamicCurrentControl to either the textbox or the combo depending on the value of another grid property that you can flip at will

Grid.Column.DynamicCurrentControl = "IIF(THIS.Parent.ShowCombo, "Combo1", "Text1")"
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform