What does DataSet.AcceptChanges do?

R

Ronald S. Cook

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
 
M

Miha Markic

Ronald S. Cook said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top