呵呵,要这样写
If e.DataCol.Name = "损耗" Or e.DataCol.Name = "利用率" Then If e.NewValue >= 1 Then e.Cancel = True e.DataRow(e.DataCol.Name) = e.NewValue/100 End IfEnd If