If e.DataCol.Name = "姓名" Then If e.Datarow.IsNull("姓名") Then e.Datarow("应发金额") = DBNull.Value Else Dim dr As DataRow dr = DataTables("奖金发放表").Find("[姓名] = '" & e.datarow("姓名") & "'")
If dr IsNot Nothing Then e.DataRow("应发金额") = dr("半年奖") end if end if end if