W
Wes Graves
Hi Everyone,
We have a problem that requires us to work around the RowState
property of a DataRow.
We have a DataTable in memory that we have modified certain rows and
columns. Those rows were initially retreived from the database and as
such now have their RowState set to Modified. We have some common
code that runs checking the RowState to see if it's Modified or Added
and takes the appropriate action. In this special situation we need
the rows that have been modified to actually be inserted(Added) not
updated(Modified).
The situation occurs because we are doing a New From Current (NFC) in
our application. A NFC simply "copies" the data of one "application"
to another so that the user doesn't have to enter all the same data in
again. Behind the scenes, this copy simply clears out some fields
that can't be carried over and resets a boolean flag.
Any ideas how we can get around this? Let me know if you need more
details.
Thanks,
Wes
We have a problem that requires us to work around the RowState
property of a DataRow.
We have a DataTable in memory that we have modified certain rows and
columns. Those rows were initially retreived from the database and as
such now have their RowState set to Modified. We have some common
code that runs checking the RowState to see if it's Modified or Added
and takes the appropriate action. In this special situation we need
the rows that have been modified to actually be inserted(Added) not
updated(Modified).
The situation occurs because we are doing a New From Current (NFC) in
our application. A NFC simply "copies" the data of one "application"
to another so that the user doesn't have to enter all the same data in
again. Behind the scenes, this copy simply clears out some fields
that can't be carried over and resets a boolean flag.
Any ideas how we can get around this? Let me know if you need more
details.
Thanks,
Wes