Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show a single grid control in red
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00427577
Message ID:
00427579
Views:
13
Hi!

Try to assign following expression to the DynamicBackColor property of the column that contains checkbox:

MyGrid.Column5.DynamicBackColor = "iif(MyTable.lMyLogicalField, RGB(255,0,0), RGB(255,255,255))"

Note that you need to replace some names in above line to get it work. MyTable.lMyLogicalField - replace this by your logical field name that used by checkbox to show information in grid.
RGB(255,0,0) - red color - color for checkboxes that are '.T.' (checked).
RGB(255,255,255) - white color - back color of grid.


>I have a Grid with a column which has a Checkbox. I want to highlight the Check Box in the grid when it is true. I can get the checkbox to display ok.
>
>I just want to higlight the checkbox control only, i.e. not the full row or full column . Even showing a Star in red (say as a caption) would probably be ok.
>
>I want any .T. checkboxes in the grid to 'Stand out' clearly.
>
>Any ideas on how to do this.
>
>regards,
>
>Gerard
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform