Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I change the backcolor of one cell of the grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00269648
Message ID:
00269663
Views:
19
Hi Cathy,

>How can I keep the last active cell highlighted when the user leaves the grid?

In the AfterRowColChange, try this:
Thisform.nRecord = recno(This.RecordSource)
This.SetAll('DynamicBackColor', '"rgb(255,255,255)"', 'Columns')
This.Columns[nColIndex].DynamicBackColor = "iif(thisform.nRecord = recno(This.RecordSource), rgb(0,0,255), rgb(255,255,255))"
You will probably need to tweak this a little.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform