Solved

Changes values in data adapter before updating dataset

Posted on 2009-04-14
2
201 Views
Last Modified: 2012-05-06
Hello,

I have a data bind form which creates a strong-typed dataset. At one point I call:
tblMyAdapter.Update(MyDataset)
MyDataSet.AcceptChanges()

Now I want to change the value in one field before I call the update and acceptchanges method. How do I do this? I think there is some way of looking at the newly entered data by the user before the changes can be pushed to the database. Note I am using vb.net 3.5

Regards,
MI
0
Comment
Question by:vj_mi
  • 2
2 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 24145132
You can do it directly.
Easy example:
ds.Tables(0).Rows(0)("ID") = "1"
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 24145134
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now