-- 作者:有点灰3
-- 发布时间:2022/6/11 12:24:00
-- 选择判断
If e.DataCol.Name = "设备总览表_设备状态_维修" Then \'如果是折扣列的内容发生变化。 If e.DataRow("设备总览表_设备状态_维修原因") = Nothing Then If e.NewValue = True Then MessageBox.Show("只有填写维修原因才能申请维修!") e.DataRow("设备总览表_设备状态_维修") = False End If End If
此主题相关图片如下:14.png
 我想做一个选择判断 在点击维修按钮之前 先判断维修原因是否有 如果没有 该按钮就为FALSE
但是现在每次增加行 都会提醒没有填写维修原因 这是怎么回事
|