If e.DataCol.Name = "供应商简称" Then If e.NewValue Is Nothing Then e.DataRow("信息_地址") = Nothing Else Dim dr As DataRow dr = DataTables("供方信息").Find("[供应商简称] = '" & e.NewValue & "'") If dr IsNot Nothing e.DataRow("信息_地址") = iif(dr.isnull("办公地址"), dr("工厂地址"), dr("办公地址")) End If End If End If