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

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
 
R

rote

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
 

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top