Is there a good way to get the changes only from a single datatable.
I am using a typed dataset that holds four tables. I would like to
get the changes only from one of them. If I use the
ds."mytable".GetChanges it returns an instance of the datatable. Is
there a good way to get that table into an empty instance of the
dataset?? The ds."mytable" is read only. The best way I have found
is to get all the changes ds.GetChanges and then to clear the rows of
the other tables. I was hoping there was a better way. Basically
because of business rules I want all of these tables in the same
dataset but this one particular table has its own update statement.

Thanks for any help on the matter.

AJL

Re: GetChanges from a DataTable into a DataSet??? by Eric

Eric
Wed Feb 18 16:01:31 CST 2004

In the past i have done something like :


myNewDS.Merge( myTypedDS.SomeTable.GetChanges() )

Hope that helps.
-eric


"Aaron Lind" <linda@boystown.org> wrote in message
news:a515dee1.0402181341.7d8e11@posting.google.com...
> Is there a good way to get the changes only from a single datatable.
> I am using a typed dataset that holds four tables. I would like to
> get the changes only from one of them. If I use the
> ds."mytable".GetChanges it returns an instance of the datatable. Is
> there a good way to get that table into an empty instance of the
> dataset?? The ds."mytable" is read only. The best way I have found
> is to get all the changes ds.GetChanges and then to clear the rows of
> the other tables. I was hoping there was a better way. Basically
> because of business rules I want all of these tables in the same
> dataset but this one particular table has its own update statement.
>
> Thanks for any help on the matter.
>
> AJL