TableAdapter update fail with inconsistent paramter

A

ad

I use Wizard to build TableAdpater
My tableadapter is make by a select command:
Select ID, Name form Test

It update generate a update command:
Update Test set ID=@ID, Name=@Name where ID=@Orginial_ID

But when I use a gridview with the TableAdpater and set the DataMemberKeys
to ID, and Update data with this gridview, it fail with message:
can find update method with parameter Name,@Orginial_ID

I think the girdview did'nt pass the first ID parameter to TableAdpater.

How can I do?
 
C

Cor Ligthert [MVP]

Ad,

It helps mostly a lot for people helping in this newsgroup, if you show the
code with what you have set the parameter.

Cor
 

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