Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make the whole row of the grid to use the same forecolor
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00525731
Message ID:
00525952
Views:
16
>In simplest case, if you did not move columns around and assuming that all columns have textboxes you can place the following in OnPostHighlightRow() method:
>
>lcHost = THIS.chostname
>lnColumn = THIS.PARENT.&lcHost..ActiveColumn
>loControl = THIS.PARENT.&lcHost..Columns(lnColumn).Text1
>loControl.ForeColor = < your conditional color here or IIF returning it >
>
>
>If not - before you set that forecolor, you will need more code to determine also which column is really ActiveColumn, which control in it is CurrentControl, does that CurrentControl have ForeColor property.

Hi Nick,

This works, thank you. That's great.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform