Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid
Message
From
26/02/1999 14:41:22
 
 
To
26/02/1999 14:32:15
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Re: Grid
Miscellaneous
Thread ID:
00192099
Message ID:
00192108
Views:
21
>How I can make the grid to change the backcolor of the current row...

You should use DynamicBackColor property. For example:
***Grid.Init event
local cLine
this.parent.grContRecno=-1
this.recordsource="tmpFrmeditL1"
this.colCalldate.controlsource="tmpFrmeditL1.calldate"
this.colUsername.controlsource="tmpFrmeditL1.username"
this.colCstatus.controlsource="tmpFrmeditL1.cstatus"
cLine="IIF(thisform.cntEdit.grContRecno=recno('tmpFrmeditL1'),65535,16777215)"
this.setall("Dynamicbackcolor",cLine,"column")
***Grid AfterColumnRowChange event
IF this.parent.grContRecno=recno("tmpFrmeditL1")
 RETURN
ENDIF
this.parent.grContRecno=recno("tmpFrmeditL1")
this.refresh
***Grid BeforeColumnRowChange event
IF used("tmpFrmeditL1")
 this.parent.grContRecno=recno("tmpFrmeditL1")
ENDIF
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform