HighTechTalks DotNet Forums  

What does DataSet.AcceptChanges do?

Dotnet Framework (ADO.net) microsoft.public.dotnet.framework.adonet


Discuss What does DataSet.AcceptChanges do? in the Dotnet Framework (ADO.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ronald S. Cook
 
Posts: n/a

Default What does DataSet.AcceptChanges do? - 07-27-2007 , 08:45 PM






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



Reply With Quote
  #2  
Old   
Scott M.
 
Posts: n/a

Default Re: What does DataSet.AcceptChanges do? - 07-27-2007 , 10:10 PM






http://msdn2.microsoft.com/en-us/lib...ptchanges.aspx



"Ronald S. Cook" <rcook (AT) westinis (DOT) com> wrote

Quote:
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





Reply With Quote
  #3  
Old   
Miha Markic
 
Posts: n/a

Default Re: What does DataSet.AcceptChanges do? - 07-28-2007 , 04:06 AM




"Ronald S. Cook" <rcook (AT) westinis (DOT) com> wrote

Quote:
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/



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.