当前位置: 代码迷 >> PB >> Column Background.解决方案
  详细解决方案

Column Background.解决方案

热度:35   发布时间:2016-04-29 07:53:39.0
Column Background....
各位大大您好
在欄位中 BackGround 屬性裡寫入 if(getrow()=currentrow(),rgb(255,255,0),rgb(192,192,192))
這樣可以實現想要的結果 

可是改寫在 DW Event 中 就無法實現
string  ls_color
ls_color="if(getrow()=currentrow(),rgb(255,255,0),rgb(192,192,192))"
dw.Modify("column.Background.Color='" + ls_color + "'")

以上範例無法實現 請教大大語法上是不是有錯誤 需要改進...

------解决思路----------------------
string ls_color
ls_color="0~tif(getrow()=currentrow(),rgb(255,255,0),rgb(192,192,192))"
dw.Modify("column.Background.Color='" + ls_color + "'")
------解决思路----------------------
引用:
引用:
string ls_color
ls_color="0~tif(getrow()=currentrow(),rgb(255,255,0),rgb(192,192,192))"
dw.Modify("column.Background.Color='" + ls_color + "'")



学习了

弱弱的问一句 加 0~t 表示什么意思……

貌似有IF 条件判断的就是需要加入0~t,  这里的0~t 应该就是一定义要求。
  相关解决方案