DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 27 Jul 2007 18:45:06 -0600,    posted on: microsoft.public.dotnet.framework.adonet        back       

Thread Index
  1    Ronald S. Cook
          2    Scott M. am
          3    Miha Markic miha at rthand com


What does DataSet.AcceptChanges do?   
If I delete rows in a DataTable and then do a DataSet.AcceptChanges, and 
then pass that DataSet to the client, will the client have any idea of rows 
that previously existed?  I'm hoping not.

If the client would still see those rows (but as deleted), I guess I will 
have to create a new DataTable and just add new rows that I want the client 
to see and pass that instead?

Thanks,
Ron
Date:Fri, 27 Jul 2007 18:45:06 -0600   Author:  

Re: What does DataSet.AcceptChanges do?   
http://msdn2.microsoft.com/en-us/library/system.data.dataset.acceptchanges.aspx



"Ronald S. Cook"  wrote in message 
news:eMGkOCL0HHA.4816@TK2MSFTNGP04.phx.gbl...

> If I delete rows in a DataTable and then do a DataSet.AcceptChanges, and 
> then pass that DataSet to the client, will the client have any idea of 
> rows that previously existed?  I'm hoping not.
>
> If the client would still see those rows (but as deleted), I guess I will 
> have to create a new DataTable and just add new rows that I want the 
> client to see and pass that instead?
>
> Thanks,
> Ron
>
> 
Date:Fri, 27 Jul 2007 22:10:38 -0400   Author:  

Re: What does DataSet.AcceptChanges do?   
"Ronald S. Cook"  wrote in message 
news:eMGkOCL0HHA.4816@TK2MSFTNGP04.phx.gbl...

> If I delete rows in a DataTable and then do a DataSet.AcceptChanges, and 
> then pass that DataSet to the client, will the client have any idea of 
> rows that previously existed?  I'm hoping not.
>


No, it won't. AcceptChanges removes those rows from dataset.

-- 
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
Date:Sat, 28 Jul 2007 10:06:42 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us