Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Backcolor of Gridcells ???
Message
From
03/02/2006 04:53:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/02/2006 04:34:46
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Database:
MySQL
Miscellaneous
Thread ID:
01093258
Message ID:
01093260
Views:
30
This message has been marked as the solution to the initial question of the thread.
>Hello Everybody !
>(VFP 9.0)
>I have a cursor xyz as a result from an sql-select
>text1,text2,colorno,text3
>a aa 128 qw
>b bb 65535 er
>c cc 65280 rr
>
>I have a grid with 4 columns
>
>thisform.grid1.recordsource = xyz
>
>Now i want that the backcolor of the textboxes in column3 are set to the value of the textbox
>(textbox1 in column3 of row1 red, textbox1 in column3 of row2 yellow ....)
>
>I don't know, how and where to code this ??
>
>grid1.column3.sparse = .F. ?????
>grid1.column3.text1.backcolor = grid1.column3.text1.value ?????
>
>Any help welcomed !

You need dynamicBackColor (and it's column's property not text1):
grid1.column3.DYNAMICbackcolor =  "xyz.colorno"
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
Next
Reply
Map
View

Click here to load this message in the networking platform