Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / March 2008

Tip: Looking for answers? Try searching our database.

TableAdapter Updating

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jp2msft - 12 Mar 2008 18:37 GMT
I have one TableAdapter that has 2 custom updating functions, 1 insert, and
the default Fill.

In my 2 custome updating functions, one function updates some fields,
whereas the other function updates the other fields (we do not always want to
update all records).

The problem is, when I call my update functions, they both return 0 (no
records were updated).

They are each in a TRY/CATCH block, but no exceptions are being thrown.

Why aren't my TableAdapter's Update functions working?

Is there a tutorial online somewhere that can outline the proper technique?

Thanks in advance!
jp2msft - 12 Mar 2008 19:07 GMT
Relivant, important details:

When a row in the DataGridView is selected, it populates data in an edit
window. The DataGridView itself is marked as "read only" so our users will
not enter incorrect information.

Do I need to somehow "un-databind" the DataGridView, write the changes, then
"re-databind" the DataGridView before performing the Updates?

If so, how would I do that?

(This is in VS 2005 Professional, and it is *not* an ASP.NET application)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.