Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control a row in a grid based on other row
Message
 
 
To
12/05/2008 16:10:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01316474
Message ID:
01316592
Views:
18
>Naomi
>
>How to use DynamicForeColor (as an example) to set the color based on different row. for example change row#3 color based on a check box in row#1
>
>Mo

Mo,

In VFP the Grid control is bound to the table / cursor. So, the CheckBox represents some field, say, myTable.Checked (logical field)

Now, if you only want to change one particular column, you would do

thisform.myGrid.myColumn.DynamicForeColor = "iif(myTableChecked, rgb(...), rgb(...))"

For All Columns in the Grid you would use SetAll method to set DynamicBack or Fore Color.

I'm writing from the top of my head, you may still want to re-check these properties in the Help.
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