Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Rollback does not rollback datatable

Reply
 
Old 09-01-2009   #1 (permalink)
Young


 
 

Rollback does not rollback datatable

I added a new record in a datatable within a transaction.

When I rollback the transaction, the new row is still in the datatable. Can
can I get the datatable to rollback as well?

I know that the actual data is not in the datatable. When I reload the
datatable, the row is not there.

The problem I have is the datatable is bound to a grid and the new row (even
though is it rolled back) is shown on the grid.

Can someone please help?

TIA
YL



My System SpecsSystem Spec
Old 09-01-2009   #2 (permalink)
Jeroen Mostert


 
 

Re: Rollback does not rollback datatable

Young wrote:
Quote:

> I added a new record in a datatable within a transaction.
>
> When I rollback the transaction, the new row is still in the datatable. Can
> can I get the datatable to rollback as well?
>
Try calling DataTable.RejectChanges() with the rollback.

--
J.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
rollback from windows.old Vista installation & setup
VPC Rollback Virtual PC
Driver Rollback Vista General
Rollback to XP possible? Vista General
Rollback RX Pro Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46