保存前。根据条件判断是否锁定。如 表a 当 例“状态”为,“已开piao”,“已付费”,则锁定行。(“状态”中的值不是新的值)。
DataColchanged事件改成BeforeSaveDataRow事件
If e.DataCol.Name = "状态" Then
If e.NewValue = "已开piao" Then
e.DataRow.Locked = True
End If
End If
If e.DataCol.Name = "状态" Then
If e.NewValue = "已付费" Then
e.DataRow.Locked = True
End If
帮忙改一下代码
[此贴子已经被作者于2011-11-12 11:38:30编辑过]