updating a datagrid using a data adpater and data set

  • Thread starter Thread starter Terry Knight
  • Start date Start date
T

Terry Knight

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???
 
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.
 
Back
Top