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

Re: What does DataSet.AcceptChanges do? by Scott

Scott
Fri Jul 27 21:10:38 CDT 2007

http://msdn2.microsoft.com/en-us/library/system.data.dataset.acceptchanges.aspx



"Ronald S. Cook" <rcook@westinis.com> 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
>
>



Re: What does DataSet.AcceptChanges do? by Miha

Miha
Sat Jul 28 03:06:42 CDT 2007


"Ronald S. Cook" <rcook@westinis.com> 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/