Groups | Blog | Home
all groups > dotnet general > october 2003 >

dotnet general : updating a datagrid using a data adpater and data set


Terry Knight
10/8/2003 8:00:42 PM
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




Matt Burland
10/8/2003 9:08:41 PM
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.

[quoted text, click to view]

AddThis Social Bookmark Button