If e.DataCol.name = "A" Dim dr As DataRow = DataTables("表B").find("A='" & e.DataRow("A") & "'") If dr IsNot Nothing Then If dr("B") = "出售" Then e.DataRow("D") = dr("D") e.DataRow("E") = dr("E") e.DataRow("F") = dr("F") Else e.DataRow("D") = Nothing e.DataRow("E") = Nothing e.DataRow("F") = Nothing End If End If End If
|