> If the parent is a new one, a default row is added to the DataTable, and
the
> user amends that (hence my need to support inserts)

If there is only one child record - you might want to look at calling the
EndCurrentEdit method before you try to do an update - otherwise the data in
the single row isn't jammed into the dataset until the row focus changeds -
or you fire this method.

> I just think that using GetChanges so that the roll flags are not updated
is
> a bit of a hack..but obviously one you've had to do as well :-(

I agree totally. This is an oversight in the update method - there should be
an overloaded version that takes a boolean to specify whether you want the
flags/original values reset or not.

This is the way PowerBuilder handles this - the DataSet/DataDapter is very
similar to a PowerBuilder Datawindow.

Barry Gervin
www.ObjectSharp.com/Barry

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to