为什么 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