PC Review


Reply
Thread Tools Rate Thread

What does DataSet.AcceptChanges do?

 
 
Ronald S. Cook
Guest
Posts: n/a
 
      28th Jul 2007
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
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      28th Jul 2007
http://msdn2.microsoft.com/en-us/lib...ptchanges.aspx



"Ronald S. Cook" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
 
Miha Markic
Guest
Posts: n/a
 
      28th Jul 2007

"Ronald S. Cook" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
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
InRowChangingEventException from DataSet.AcceptChanges Michael Freidgeim Microsoft ADO .NET 0 17th Nov 2005 12:21 AM
DataSet.AcceptChanges? Christopher Weaver Microsoft C# .NET 4 20th May 2005 09:41 PM
dataSet acceptChanges =?Utf-8?B?cy1nYWxpdA==?= Microsoft Dot NET 4 28th Sep 2004 11:11 AM
DataSet.AcceptChanges not working pushpendra vats Microsoft VB .NET 1 8th Apr 2004 02:49 PM
what does the Acceptchanges() method of the dataset do? Juan Romero Microsoft ADO .NET 6 11th Sep 2003 03:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:57 PM.