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?
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?