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

Column Background.该怎么解决

热度:73   发布时间:2016-04-29 08:20:29.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 表示什么意思……
  相关解决方案