If e.DataCol.Name = "提交" If e.DataRow("提交") = True Then Dim nma() As String = {"_Identify", "采购编号" , "项目名称","申购人" } 'A表数据来源列 Dim nmb() As String = {"加一列", "采购编号" , "项目名称","申购人" } 'B表数据接收列 e.DataRow.save Dim dr As DataRow = DataTables("采购审核表").AddNew 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
|