Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Color witin a gird
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2016
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01658871
Message ID:
01658876
Views:
39
>Hello friends; How can I change the color background of a text (Grid1,Column1,Text1), within a grid, according to the value that is entered?Thank's a lot

Assuming that your grid's recordsource is already set as a cursor's alias, you could use something like this in the grid.Init method
This.Column1.DynamicForeColor = ;
[IIF(] + This.Column1.ControlSource + [ = yourvalue, RGB(255, 0, 0), ] + TRANSFORM(This.Column1.ForeColor) + [)]
Previous
Reply
Map
View

Click here to load this message in the networking platform