PC Review


Reply
Thread Tools Rate Thread

DataTable NewRecord, Delete, then AcceptChanges

 
 
Craig Buchanan
Guest
Posts: n/a
 
      21st Jul 2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataTable NewRecord, Delete, then AcceptChanges Craig Buchanan Microsoft VB .NET 0 21st Jul 2008 01:10 PM
what is the best way to make a DataTable thread safe? DataTable.AcceptChanges() will throw exception (not documented) Ryan Liu Microsoft C# .NET 3 7th Jun 2006 05:07 PM
DataTable.AcceptChanges Allan Bredahl Microsoft Dot NET 8 14th Jan 2004 04:35 AM
DataTable.AcceptChanges causes form to be first in z-order Richard Shaw Microsoft Dot NET Framework Forms 0 7th Nov 2003 01:43 PM
DataTable.AcceptChanges causes form to activate Rick Microsoft Dot NET Framework Forms 0 3rd Nov 2003 04:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:19 PM.