>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
Checkout the columns DynamicCurrentControl property
Charles
"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers