datagridview update with dataset and dataasapter

M

mikalush

is anyone know if i can update access database with dataset in the vs
2005 express?

really imortant to me.

i need to know maybe i just wasting my time!

i've a datagridView that get is data from a dataset:

Me.T_1TableAdapter.Fill(Me.T_1DateSet.T_1)

and i try to update it in a bottom-click:

Me.Validate()

Me.T_1BindingSource.EndEdit()

Me.T_1TableAdapter.Update(Me.T_1DataSet.T_1)

and i get the followin error:

Update requires a valid UpdateCommand when passed DataRow collection
with modified rows.

i'll appriciate any help!!!!
 
B

Brian Tkatch

mikalush said:
is anyone know if i can update access database with dataset in the vs
2005 express?

really imortant to me.

i need to know maybe i just wasting my time!

i've a datagridView that get is data from a dataset:

Me.T_1TableAdapter.Fill(Me.T_1DateSet.T_1)

and i try to update it in a bottom-click:

Me.Validate()

Me.T_1BindingSource.EndEdit()

Me.T_1TableAdapter.Update(Me.T_1DataSet.T_1)

and i get the followin error:

Update requires a valid UpdateCommand when passed DataRow collection
with modified rows.

i'll appriciate any help!!!!

Did you instantiate a New (valid) update command to
Me.T_1TableAdapter.UpdateCommand?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top