Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid DynamicBackColor using a checkbox in the grid
Message
 
To
17/10/2005 13:03:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01059618
Message ID:
01059659
Views:
10
>>In a picklist I want to highlight a grid row when the user checks a checkbox. I set the DynamicBackColor with setall() and it works fine when the box is checked and the user moves off the record.
>>
>>The code:
>>
>>Thisform.grdPkUsers.SetAll("DynamicBackColor", "IIF(c_pkusers.pkmark, 8421631,16777215)", "Column")
>>
>>
>>However, when you first mark the checkbox the row does not get the color and if you de-select it, it then gets the color. Bass akwards to what the user expects. As soon as you move off the record the color is correct.
>>TIA
>
>
>* checkbox valid
>Thisform.grdPkUsers.Refresh
>
Fabio, thanks for the tip. It did help me fix the problem but in the opposite way. I looked and found I already had refresh() in the InteractiveChange event of the checkbox. I removed it and the reverse color action stopped.
I then put the refresh() in the click event and it works just fine. Thanks!
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Reply
Map
View

Click here to load this message in the networking platform