PC Review


Reply
Thread Tools Rate Thread

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

 
 
rote
Guest
Posts: n/a
 
      1st Oct 2007
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


 
Reply With Quote
 
 
 
 
rote
Guest
Posts: n/a
 
      4th Oct 2007

"rote" <(E-Mail Removed)> wrote in message
news:eb1DeX$(E-Mail Removed)...
> 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
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ObjectDataSource and GridView Just Me Microsoft ASP .NET 1 21st Mar 2008 01:24 PM
can't delete record when using objectdatasource and GridView Rote Rote Microsoft ASP .NET 0 1st Oct 2007 12:31 PM
.NET 2.0 Delete using GridView and ObjectDataSource Barry L. Camp Microsoft VB .NET 1 9th Jan 2007 07:16 AM
ObjectDataSource and GridView Eiriken Microsoft ASP .NET 0 19th Jan 2006 04:57 PM
gridview, objectdatasource family Microsoft ASP .NET 0 22nd Dec 2005 03:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:23 PM.