你原来的判断没有多少意义,因为以下代码:
If b = True Then e.DataRow("判别") = "OK"Else e.DataRow("判别") = "NG"End If
在判断语句之外,无论什么列名都会执行。