在表属性DataRowAdding中编入以下代码
If e.DataTable.DataRows.Count>1 Then
e.DataRow("日期")=e.DataTable.DataRows(e.DataTable.DataRows.Count-1)("日期")
End If
新建新的一行不能自动复制上一行日期,不知道上面代码错在哪里?