Can't do a delete when using Objectdatasource with a GridView

  • Thread starter Thread starter rote
  • Start date Start date
R

rote

Hi Guys,
I have a simple Edit,Update Gridview and i'm using ObjectDatasource
with dataset generated and TableAdapters
I can do an update no problem.But can't get my delete to work.When i look
at the parameters sent to the store proc it all contains NULL.
I came across using setting DataKeyNames but i don't have a primary Key ID
on the table.The parameters i have are theyear,themonth,code
and i want to delete based on those paramters which i have in my
DeleParameters tag.
How can i do an update in such scenario?
Thanks in Advance
 
rote said:
Hi Guys,
I have a simple Edit,Update Gridview and i'm using ObjectDatasource
with dataset generated and TableAdapters
I can do an update no problem.But can't get my delete to work.When i look
at the parameters sent to the store proc it all contains NULL.
I came across using setting DataKeyNames but i don't have a primary Key ID
on the table.The parameters i have are theyear,themonth,code
and i want to delete based on those paramters which i have in my
DeleParameters tag.
How can i do an update in such scenario?
Thanks in Advance
 
Back
Top