\'自动复制行
If e.DataCol.Name = "复制到库存表" AndAlso e.DataRow("复制到库存表") = True Then
Dim nma() As String = {"ProductId","Amount","出库日期","已交数量"} \'A表数据来源列
Dim nmb() As String = {"ProductId","InventoryAmount","Date","DeliveryAmount"} \'B表数据接收列
Dim dr As DataRow = DataTables("PD_Product_Details").AddNew
For i As Integer = 0 To nma.Length - 1
dr(nmb(i)) = e.DataRow(nma(i))
Next
End If