[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

DataTable NewRecord, Delete, then AcceptChanges

Craig Buchanan

7/21/2008 12:10:00 PM

Assuming that I have a table with a single, auto-generated primary key and a
TableAdapter/DataTable that references it, what would happen if I add a new
row to the DataTable in code, Delete it, then pass it to the TableAdapter's
Update method? Would calling AcceptChanges have an effect on this?

I'm building a wizard that allows the user to enter information into a
gridview. the gridview's rows and columns are dynamically generated based on
selections on the wizard's first page. i commit the gridview's data in bulk
when the wizard's finish button is clicked.

i'm concerned that the back and forth movement between page one and two will
generate a complex series of NewRows, Deletes, etc. that will make saving the
data a huge challenge.

thoughts appreciated.

thanks in advance.

Craig Buchaan