http://lessons.runrev.com/s/lessons/m/d ... -to-a-cellTraxgeek wrote: If I want to override the row colour of a DG row (just for one (or more) specific row(s) within the full DG) how would I do that please ?
.
->add a new invisible column, that will contain a flag (like to be colorized = 1 for instance)
->in the default column behavior :
[change]
Code: Select all
on FillInData pData
set the text of me to pData
SetForeGroundColor
end FillInData
Code: Select all
private command SetForeGroundColor
if GetDataOfIndex(the dgIndex of me, "theFlag")=1 then
set the textcolor of me to "black"
set the backgroundColor of me to 68,234,45
set the opaque of me to true
else
set the textcolor of me to "black"
set the backgroundColor of me to "white"
set the opaque of me to false
end if
end SetForeGroundColor
http://forums.runrev.com/viewtopic.php? ... 540#p78299