Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to undo changes to a dataset?
Message
 
 
To
17/01/2010 11:49:06
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01444398
Message ID:
01444423
Views:
31
Hi Bonnie,

Thank you for your help. I am glad .NET way of undoing the changes is as easy as VFP. I will start another thread on how to Save the changes in the data set to the table in the DB.

>Dmitry,
>
>The DataSet.RejectChanges() method rolls back all changes to the DataSet since it was created or since the last DataSet.AcceptChanges() method was called.
>
>~~Bonnie
>
>
>>Hi,
>>
>>I am moving to the next step of converting a VFP project to WinForms (working on a real small project).
>>
>>My VFP form has (among others) two buttons, Save and Cancel. When user makes changes to any of the fields (textboxes, combo, etc) he/she can click on Cancel and the code in Cancel.click() reverts the changes to the cursor. Since my WinForm controls are bound to a table in a typed data set I need to do kind of the same. How do you undo changes to the table in a data set?
>>
>>TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform