Hi,
This way you can do that.
Assumpltion : dsContents is the dataset which
contains all
changes.
DataSet dsNewRows =
dsContents.GetChanges(DataRowState.Added);
DataSet dsModifiedRows =
dsContents.GetChanges(DataRowState.Modified);
now you have two different datasets loop through each
dataset and
perform the required operation seperately.
Karthik D V
Bhagya wrote:
> Hello,
>
> I have a Dataset in which i have multiple rows. Some of
these rows
> have been edited and some new rows have also been added
to the
> Dataset.
>
>
> Now I have two Commands that is the InsertCommand and
the
> UpdateCommand.
>
>
> I want to seperate the rows in such a way that, all the
rows that
> have
> been newly added should at once be sent to the
InsertCommand and all
> the rows that have been edited should be sent to the
UpdateCommand.
> Can someone pls tell me how to do this???
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharp googlegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribe googlegroups.com
For more options, visit this group at http://g
roups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---
|