Monday, February 27, 2012

what is acceptchanges and reject changes method of data table in ADO.NET?

ACCEPTCHANGES-Method acceptchanges is used to commit all the changes made to the datatable after the last call of acceptchanges method and also change/overwrite the row’s version original value.

At the very first time when data is loaded in to the datatable its entire row has rowstate ‘added’. Then if we make any change in to any row its rowstate property gets changed to ‘modified’. And if we want to make these changes not to rollback then call method ‘acceptchanges’. This method change the property rowstate to the ‘unchanged’ and also its original version value is set to new value.

REJECTCHANGES- method is used to rollback all the changes made to the datatable since last acceptchanges method call.

0 comments:

About

an outsourcing company providing Software Outsourcing, Offshore Outsourcing, Website Design and Web Development/Windows Application Development Services to customers. You can outsource to us at the cost advantages of offshore outsourcing with a majority claiming anywhere between 40-50% savings

  © Free Blogger Templates Blogger Theme II by Ourblogtemplates.com 2008

Back to TOP