'Dim dr As DataRow = e.DataRow
If e.DataRow = " " Then '如果不是新增行
' Return '那么返回
ElseIf e.IsNull("编号") Then '如果没有输入日期
' e.Cancel = True '取消保存此行
MessageBox.Show("必须输入编号!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
'Return
ElseIf e.IsNull("姓名") Then
MessageBox.Show("必须输入姓名!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
ElseIf e.IsNull("岗位名称") Then
MessageBox.Show("必须输入岗位名称!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
ElseIf e.IsNull("业务名称") Then
MessageBox.Show("必须输入业务名称!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
ElseIf e.IsNull("业务步骤") Then
MessageBox.Show("必须输入业务步骤!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
ElseIf e.IsNull("汇总时间") Then
MessageBox.Show("必须输入汇总时间!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
ElseIf e.IsNull("频率") Then
MessageBox.Show("必须输入频率!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If
如何控制一个单元格为空的时候返回值“需要填写”,在哪个属性里写?