Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date column in the grid with SET CENTURY ON
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00993628
Message ID:
00994727
Views:
16
>Try this:
>
>** Add a property pnRecord to your form and initilize it with 0
>myform.mygrid.column1.Sparse=.f.
>myform.mygrid.column1.text1.Century = 0
>myform.mygrid.column1.text1.BackStyle = 0
>myform.mygrid.column1.DynamicBackColor="=iif(recno(this.RecordSource)=thisform.pnRecord,this.HighlightBackColor,this.BackColor)"
>
>** AfterRowColChange event
>thisform.pnRecord=recno(this.RecordSource)
>IF m.nColIndex = 1 ; && 1 is the column1
>THEN
>  this.column1.text1.BackStyle = 1
>ELSE
>  this.column1.text1.BackStyle = 0
>ENDIF
>this.refresh()
>
Thanks a lot, I'll try. Too bad I can not use built-in mechanism.
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