AfterEdit事件
If e.Col.name = "日期" OrElse e.Col.name = "姓名" Then If e.Row.Index = e.Table.Rows.Count-1 Then If e.Row.IsNull(e.Col.name) = False Then e.Table.DataTable.AddNew End If End IfEnd If