If e.DataCol.name = "第一列" Then
Dim t As Table = Tables("表B")
Dim idx As Integer = t.FindRow(e.DataRow)
If idx < 1 Then Return
Dim r As Row = t.Rows(idx -1)
If r("第一列") = e.DataRow("第一列") Then
Dim nr As Row
Dim i2 As Integer = Tables("表C").FindRow("行号 is null")
If i2 = -1 Then
nr = Tables("表C").AddNew
Else
nr = Tables("表C").Rows(i2)
End If
nr("行号") = idx
nr("结果") = "是"
'nr("第二列") = e.DataRow("第二列")
End If
ElseIf e.DataCol.name = "第三列" Then
Dim t As Table = Tables("表B")
Dim idx As Integer = t.FindRow(e.DataRow)
If idx < 1 Then Return
Dim r As Row = t.Rows(idx -1)
If r("第三列") = e.DataRow("第三列") Then
Dim nr As Row
Dim i2 As Integer = Tables("表C").FindRow("二行号 is null")
If i2 = -1 Then
nr = Tables("表C").AddNew
Else
nr = Tables("表C").Rows(i2)
End If
nr("二行号") = idx
nr("二结果") = "是"
'nr("第四列") = e.DataRow("第四列")
End If
End If