How to set RowState property manually??? I'm going nuts!!!!!!!

  • Thread starter Thread starter buffoni
  • Start date Start date
B

buffoni

I need to set datarow rowstate property manually. I need to rollback a
big update batch in case of an error but this adonet makes rowstatus
unchanged. I can't make the copy of the datatables since I've identity
column.
 
No!

I have a hierarchical dataset bound to a DataGrid where the bound is
made by identity columns value is set by the db. If the update fails,
I need to give user a change to correct the mistake and try the update
again. Reject destroys the changes. I don't obviously want to do that.
 
HI buffoni,

Why don't you use GetChanges() method to extract all changes from dataset,
do an Update on this changes and if successfully merge the changes back to
original dataset?
 
Back
Top