这种没有办法使用表达式处理,只能使用代码
产品总表datacolchanged事件
If e.DataCol.Name = "编号" Then
If e.DataRow.IsNull("编号") Then
e.DataRow("颜色") = Nothing
Else
e.DataRow("颜色") = DataTables("产品明细表").GetComboListString("颜色","编号='" & .DataRow("编号") & "'").replace("|",",")
End If
End If
[此贴子已经被作者于2021/5/10 20:18:00编辑过]