Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container in grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01637249
Message ID:
01637258
Views:
109
>>>
>>>The idea is to have two containers in the column - one for the row that has the focus, and the other one for the other rows
>>>
>>
>>That's a cool idea. I'll try it out.
>
>The combination of ideas seems to work really well and using 2 different controls really simplified the logic inside of the container control as I didn't need to make sure to hide/show controls based on focus.
>
>I added a form method named GetRowControl that does something like this:
>
>
>IF ThisForm.grdSample.ActiveRow = RECNO("cursorName")
>   ThisForm.grdSample.Column1.ctrSample.cboSample.Refresh()
>   ThisForm.grdSample.Column1.ctrSample.Update()
>   
>   RETURN "ctrSample"
>ELSE
>   ThisForm.grdSample.Column1.ctrSample_RO.cboSample.Refresh()
>   ThisForm.grdSample.Column1.ctrSample_RO.Update()
>   
>   RETURN "ctrSample"
>ENDIF
>
>
>Then set DynamicCurrentControl to: ThisForm.GetRowControl()
>
>The refreshes seem to be required as it wasn't showing the bound values without it.
>
>Thanks - I appreciate it.


You're welcome
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform