Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
How can we check that some changes have been made to dataset since it was loaded
How can we cancel all changes done in dataset ? or How do we get values which are changed in a dataset ?
✍: Guest
For tracking down changes Dataset has two methods which comes as rescue “GetChanges
“and “HasChanges”.
GetChanges
Returns dataset which are changed since it was loaded or since Acceptchanges was
executed.
HasChanges
This property indicates that has any changes been made since the dataset was loaded or
acceptchanges method was executed.
If we want to revert or abandon all changes since the dataset was loaded use
“RejectChanges”.
Note:- One of the most misunderstood things about these properties is that it tracks the
changes of actual database. That is a fundamental mistake; actually the changes are related
to only changes with dataset and have nothing to with changes happening in actual database.
As dataset are disconnected and do not know anything about the changes happening in
actual database.
2007-10-24, 4947👍, 0💬
Popular Posts:
How To Add Column Headers to a Table? - XHTML 1.0 Tutorials - Understanding Tables and Table Cells I...
Can include files be nested? The answer is yes. Include files can be nested any number of times. As ...
From performance point of view how do they rate ? Repeater is fastest followed by Datalist and final...
How To Assign Query Results to Variables? - Oracle DBA FAQ - Working with Database Objects in PL/SQL...
How To Change the Password of Another User Account? - MySQL FAQs - Managing User Accounts and Access...