Select Case e.DataCol.Name
Case "姓名","实时状态"
Dim dr As DataRow = e.DataRow
Dim pr As DataRow
Dim filter As String
filter = "姓名 = \'" & dr("姓名") & "\'"
pr = DataTables("表A").Find(filter)
If pr IsNot Nothing Then
Dim dr2 As DataRow = e.DataTable.Find(filter,"回访日期 desc")
If dr2 IsNot Nothing Then
dr("状态") = pr("实时状态")
End If
End If
End Select