以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- DataColChanged不触发 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=105644) |
-- 作者:test1234 -- 发布时间:2017/8/23 15:04:00 -- DataColChanged不触发 为什么 DataColChanged 有时候触发,有时候根本不执行? Select Case e.DataCol.name Case "auditdate" If e.DataRow.IsNull("auditdate") Then e.DataRow("isoverdate") = Nothing Else Dim tp As TimeSpan = Date.today - CDate(e.DataRow("auditdate")) If e.DataRow.IsNull("回访人员") And e.DataRow.IsNull("回访日期") Then If tp.days>10 Then e.DataRow("isoverdate")="是" Else e.DataRow("isoverdate")="否" End If End If End If End Select
|
-- 作者:有点甜 -- 发布时间:2017/8/23 15:12:00 -- 是否触发,加入msgbox弹出看看。
如果是你逻辑有问题(不能实现你要的效果),检测你代码编写是否正确。
注意,如果按住ctrl不放打开项目,默认是不触发执行代码的。 |
-- 作者:狐狸爸爸 -- 发布时间:2017/8/23 15:55:00 -- 也许是因为: http://www.foxtable.com/webhelp/scr/2381.htm |