Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View Multiple Controls in a Grid
Message
From
26/03/2003 13:15:42
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
View Multiple Controls in a Grid
Miscellaneous
Thread ID:
00770345
Message ID:
00770345
Views:
43
VFP 6 sp5. I have a grid that contains an 2 optionboxes. Based on a specific field in a table I want to change the current control for that row. I am able to do this if I set sparse to .t. and place the following code in the Gridbeforerowcolchange Event.
thisform.grid1.column2.currentcontrol = IIF(TABLE.FIELD=.f.,"Opt2","Opt1")

This works except the user can't see the optionbox until they click on the appropriate row. Is there any way to change the currentcontrol for a particular row and set sparse to false and display the appropriate optionbox for each row. Would I be better off just using 1 optionbox and then trying to change the labels on each row?

Tia
Rob
Next
Reply
Map
View

Click here to load this message in the networking platform