问题出在:
if e.Row("计划员") <> User.Group then
End if
应该是:
if e.DataRow("计划员") <> User.Group then
不过想不通你这个判断意义何在。