Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change the BackColor of a Single Cell
Message
From
10/01/2008 16:10:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
10/01/2008 12:38:25
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01280909
Message ID:
01280989
Views:
13
>How can I programatically change the BackColor of a single cell? I will have an RGB combination, and the row I want will be currently selected, but not necessarily the column. I want to be able to change the BackColor of ColumnThisOne for the currently selected row.

Off the top of my head:
*Grid.init
this.Addproperty("CurrentRecno",0)
this.ColumnThisOne.DynamicBackColor = "(iif(recno()=this.CurrentRecno,0xFFFF00,0xFFFFFF))"

*Grid.BeforeRowColChange
lparameters nColIndex
thisform.Lockscreen = .t.

*Grid.AfterRowColChange
lparameters nColIndex
this.CurrentRecno = recno()
thisform.Lockscreen = .f.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform