我运行身份证验证,不管输入什么身份证号码都弹出提示框身份证错误,请老师帮我看下是哪里没写对,谢谢!
If e.DataCol.Name = "身份证号码" Then '如果更改的是身份证号码列
If e.DataRow.IsNull("身份证号码") Then '身份证号码是否为空
ValidPIN("身份证号码")
Else
MessageBox.Show("身份证输入有误,请重新输入!","特别提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
e.DataRow(e.DataCol.Name) = e.OldValue '取消输入
End If
End If