Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid
Message
From
26/02/1999 14:51:00
 
 
To
26/02/1999 14:41:22
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Re: Grid
Miscellaneous
Thread ID:
00192099
Message ID:
00192116
Views:
23
>>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
>
thanks !!
Mr MVP... this is the fourth time you save my b...
An Intelligent fool can make things bigger and more complex... It takes a touch of a genius -and a lot of courage- to move in the opposite direction".
-Albert Einstein
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform