Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
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, 5273👍, 0💬
Popular Posts:
How To Join a List of Keys with a List of Values into an Array? - PHP Script Tips - PHP Built-in Fun...
What will be printed as the result of the operation below: main() { char s1[]="Cisco"; char s2[]="sy...
What is the difference between Authentication and authorization? This can be a tricky question. Thes...
Can you explain the fundamentals of “GetGlobalResourceObject ”and “GetLocalResourceObject” function...
How do you target a specific frame from a hyperlink? Include the name of the frame in the target att...