e.DataCol.Name = "产品编号" Then If e.NewValue Is Nothing Then e.DataRow("品名") = Nothing e.DataRow("型号") = Nothing e.DataRow("规格") = Nothing e.DataRow("单价") = Nothing Else Dim dr As DataRow dr = DataTables("产品").Find("[产品编号] = '" & e.NewValue & "'") If dr IsNot Nothing e.DataRow("品名") = dr("品名") e.DataRow("型号") = dr("型号") e.DataRow("规格") = dr("规格") e.DataRow("单价") = dr("单价") End If End If End If