DataColChanged 事件
If e.DataCol.Name = "数量" Then
Dim dr As DataRow = DataTables("配送表").Find ( "配送单ID ='"& e.DataRow("配送单ID").value & "' And 产品 ='"& e.DataRow("产品").value & "' And 客户= '"& e.DataRow("客户").value & "'")
If dr("配送数量")< 0 Then
Messagebox.Show("数量不准确,请重新输入数量!","提示")
e.DataRow("数量")=0
e.Cancel = True
End If
End If
提示 未找到类型string的公共成员 text,代码这样有错吗?