DataTable.Reset() vs DataTable.RejectChange()

B

Billy

Anyone can tell me the difference between
DataTable.Reset() and DataTable.RejectChanges()?
 
M

Miha Markic [MVP C#]

Hi Billy,

Reset is used to reset the table to the same state after it is created (it
clears columns, constraints, ..).
While the RejectChanges resets only the data changes from the last neutral
state.
 
B

Billy

I got the idea, thanks.
-----Original Message-----
Hi Billy,

Reset is used to reset the table to the same state after it is created (it
clears columns, constraints, ..).
While the RejectChanges resets only the data changes from the last neutral
state.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

Billy said:
Anyone can tell me the difference between
DataTable.Reset() and DataTable.RejectChanges()?


.
 

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