can't delete record when using objectdatasource and GridView

R

Rote 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 a solution 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
DeleteParameters tag. How can i accomplish a delete in such sceanrio?
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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top