>Good afternoon,
>I found that I also needed to copy the changes back into the original dt datatable. Here's the code.
> protected override bool HookPreSave(DataTable dt)
> {
> System.Data.DataTable dtchanged = dt.GetChanges();
> foreach (DataRow dr in dtchanged.Rows)
> {
> dr["EdtDTime"] = DateTime.Now;
> }
> dt.Merge(dtchanged);
> return true;
> }
>
>rick
Yup, you made a copy of data inside your method so the original data wasn't changed. Glad you figured it out.
Tim
Timothy Bryan