Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Mon, 21 Jul 2008 05:10:00 -0700,    group: microsoft.public.dotnet.framework        back       


DataTable NewRecord, Delete, then AcceptChanges   
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
date: Mon, 21 Jul 2008 05:10:00 -0700   author:   Craig Buchanan

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us