DataRowAdded事件
Dim maxd As Date = e.DataTable.Compute("max(第三列)")If maxd = Nothing Then maxd = Date.TodayElse Do maxd = maxd.AddDays(1) Loop While maxd.DayOfWeek = 0 OrElse maxd.DayOfWeek = 6End If
e.DataRow("第三列") = maxd