If e.DataCol.Name = "赤水" Then
If e.DataRow("赤水") = True Then
Dim nma() As String = {"_Identify","月份","金额"} \'成本数据来源列
Dim nmb() As String = {"唯一标记","月份","金额"}\'账单明细数据接收列
Dim dr As DataRow = DataTables("付款").AddNew
dr("客户简称") = "xx物流"
For i As Integer = 0 To nma.Length - 1
dr(nmb(i)) = e.DataRow(nma(i))
Next
Else
DataTables("付款").deletefor("唯一标记 = \'" & e.DataRow("_Identify") & "\'")
End If
End If