Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Dataview Update

Posted on 2004-10-14
7
Medium Priority
?
432 Views
Last Modified: 2010-04-23
How do i update my tables when i am using a dataview?
0
Comment
Question by:daverichardson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 4

Accepted Solution

by:
eozz_2000 earned 200 total points
ID: 12312745
Your dataView must be bounded to a table, then:

DataSet1.Update(dsSample,"The table that is bounded to your data view")
0
 

Author Comment

by:daverichardson
ID: 12312825
Should DataSet1.Update be dataadapter.Update if so my table isnt updated
0
 
LVL 4

Expert Comment

by:eozz_2000
ID: 12312979
jajajaja.... sorry, you're right, is dataAdapter.update

If your dataView is the result of joining a couple or several tables it can't be updated, you must reference only one table if you want to update (I think).

Do you have a dataGrid bounded to your dataTable?... if it, let me understand... you have bounded your dataGrid to your dataView, your dataView is bounded to a table... when you update that table... the changes aren't stored in the dataBase?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:daverichardson
ID: 12312999
Yes thats right
0
 
LVL 4

Expert Comment

by:eozz_2000
ID: 12313025
Is your dataView a result of joining tables?
0
 

Author Comment

by:daverichardson
ID: 12313060
no
0
 

Author Comment

by:daverichardson
ID: 12313125
ok  i have sorted it, i recreated my form from scratch andit worked fine so there must have been something else wrong

thanks for all your help

Dave
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

722 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