Solved

Changes values in data adapter before updating dataset

Posted on 2009-04-14
2
190 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

19 Experts available now in Live!

Get 1:1 Help Now