473,486 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

updating a datagrid using a data adpater and data set

hey,

i've created a data adpater called 'dabvscores'
i've created a dataset called 'dsvbscores'

now i've greated a private sub to populate the data adpater and then i fill
the dataset and this private is called on form load, i have an update
command button with the following code in it:
daVBScores.Update(dsVBScores)

but i'm getting an error when it try to run the code. does anyone know what
i'm doing wrong???

---------------------------------------------
Terry Knight
Computer Systems Technologist
F: 206.260.0704
www.tforce.ca

Jul 21 '05 #1
1 1683
What error are you getting? What were you expecting to happen? Did you
either set the Select, Insert, Update and Delete commands of the data
adapter or use the command builder?
BTW, you populate the dataset, not the data adapter. The data adapter just
acts a kind of "middle man" between your dataset and your datasource. This
lets you use your dataset the same way regardless of what the datasource
was.

"Terry Knight" <tn***@cogeco.ca> wrote in message
news:vE*******************@read1.cgocable.net...
hey,

i've created a data adpater called 'dabvscores'
i've created a dataset called 'dsvbscores'

now i've greated a private sub to populate the data adpater and then i fill the dataset and this private is called on form load, i have an update
command button with the following code in it:
daVBScores.Update(dsVBScores)

but i'm getting an error when it try to run the code. does anyone know what i'm doing wrong???

---------------------------------------------
Terry Knight
Computer Systems Technologist
F: 206.260.0704
www.tforce.ca


Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2011
by: junglist | last post by:
Hi guys, I've been trying to implement an editable datagrid and i have been succesful up to the point where i can update my datagrid row by row. However what used to happen was that once i updated...
10
5622
by: jaYPee | last post by:
does anyone experienced slowness when updating a dataset using AcceptChanges? when calling this code it takes many seconds to update the database SqlDataAdapter1.Update(DsStudentCourse1)...
1
262
by: Terry Knight | last post by:
hey, i've created a data adpater called 'dabvscores' i've created a dataset called 'dsvbscores' now i've greated a private sub to populate the data adpater and then i fill the dataset and...
2
1660
by: Greg | last post by:
I'm using the Framework 1.1, so I don't have access to the new DataGridView object. What I'm wondering is, is there a really simple way to bind a plain datagrid to a database in such a way that...
0
7094
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6839
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7305
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4863
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3066
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.