Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New Record
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Miscellaneous
Thread ID:
00736527
Message ID:
00736606
Views:
7
Hi Victoria,

I would recommend using the methods on the DataTable itself instead of the BindingContext object. There are some known bugs that can cause inconsistencies with the CurrencyManager to add and cancel changes.

>I want to add new record to my dataset.
>
>I'm confused, should I use
>myDataTable.NewRow()
>OR
>Me.BindingContext(myDataSet, myMainDataTable).AddNew()
>
>Also what to use to cancel the newly added record?
>myDataTable.RejectChanges()
>OR
>Me.BindingContext(myDataSet, myMainDataTable).CancelCurrentEdit
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform