老师,表属性Datacolchanged 中的以下黄色可以帮忙纠下一下吗? 提示 列名 'true' 无效。
If e.DataCol.Name = "PartNo" Then
If e.DataRow.IsNull("PartNo") Then
e.DataRow("Priority") = True
e.DataRow("FUsed") = False
Else
Dim brrr As DataRow = e.DataRow
Dim cmd As new SQLCommand
cmd.CommandText = "Se lect * From {t_SupplyEntry} Where FItemID = '" & brrr("FItemID") & "'and FPrioritized = true "
cmd.C
Dim Values = cmd.ExecuteValues
If Values.Count > 0 Then
brrr("Priority") = False
brrr("FUsed") = False
Else
brrr("Priority") = True
brrr("FUsed") = False
End If
End If
End If