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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top