Dim Result As DialogResult
Result = MessageBox.Show("确认吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If Result = DialogResult.Yes Then
If e.DataCol.Name = "录入" AndAlso e.DataRow("录入") = True Then
Dim nma() As String = {"姓名","日期","编号"} \'A表数据来源列
Dim nmb() As String = {”姓名","日期","编号"} \'B表数据接收列
Dim dr As DataRow = DataTables("luru").AddNew
For i As Integer = 0 To nma.Length - 1
dr(nmb(i)) = e.DataRow(nma(i))
Next
MessageBox.Show("成功!")
DataTables("luru2").Save()
DataTables("luru").Save()
Else
e.Cancel = True
MessageBox.Show("已取消","提示")
End If
End If