Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlighting the current row in grid
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00358923
Message ID:
00360611
Views:
9
Hi Erik:

Below are my dynamic color proerties in the INIT of my grid class.

Using ABS() on recno() in the afterrowchange event got it to work. It appears that if recno() and this.currecno are both negative, they will evaluate true in the dynamic color properties regardless of their value. This is obviously not right, is there some evironmental setting or number comparison thing I'm overlooking?

.SETALL('DYNAMICBACKCOLOR', 'IIF(RECNO() = THIS.CurRecNo, RGB(0,0,128), RGB(255,255,255))', 'COLUMN')

.SETALL('DYNAMICFORECOLOR', 'IIF(RECNO() = THIS.CurRecNo, RGB(255,255,255), RGB(0,0,0))', 'COLUMN')

Thanx,
Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform