General information
Category:
Forms & Form designer
Title:
View Multiple Controls in a Grid
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only