PC Review


Reply
Thread Tools Rate Thread

DA Update Error

 
 
=?Utf-8?B?U3RldmUgQi4=?=
Guest
Posts: n/a
 
      23rd Jun 2005
I realize this is a broad ADO .Net question but i thought I'd give it a shot
because i can't solve it

When my DG opens and I select a row for deletion everything works fine. If
I add a row through a separate Add Form class that returns a merged DS and
try to delete the row I just added from the DG the DA.update(DS) gives an
exception ("deletecommand affected 0 records"). The Row State of the row is
"Delete" and the DS haschanges(). i think the total row counts of the DS and
DG are correct

Any Ideas? I'm possessed by it.

Steve
 
Reply With Quote
 
 
 
 
Miha Markic [MVP C#]
Guest
Posts: n/a
 
      23rd Jun 2005
Hi Steve,

Update notifies you that it hasn't made any update while it should made
them.
This means that UPDATE sql statement failed because of WHERE condition.
You should check what your DA.UpdateCommand.CommandText does.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
SLODUG - Slovene Developer Users Group www.codezone-si.info

"Steve B." <(E-Mail Removed)> wrote in message
news:43B6F098-3D94-4494-A0E4-(E-Mail Removed)...
>I realize this is a broad ADO .Net question but i thought I'd give it a
>shot
> because i can't solve it
>
> When my DG opens and I select a row for deletion everything works fine.
> If
> I add a row through a separate Add Form class that returns a merged DS
> and
> try to delete the row I just added from the DG the DA.update(DS) gives an
> exception ("deletecommand affected 0 records"). The Row State of the row
> is
> "Delete" and the DS haschanges(). i think the total row counts of the DS
> and
> DG are correct
>
> Any Ideas? I'm possessed by it.
>
> Steve



 
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
cannot update, the automatic update is not in services.msc and saysit is when try to install receive this error when trying to automatic update Cornholis Windows XP Basics 2 27th Aug 2011 06:59 AM
Vista Windows Update error Code: 80070490 Windows Update encountered an unknown error Michel Speed Windows Vista General Discussion 1 24th Jan 2009 10:02 PM
windows update fails to update to new version with error code 8007 vijay Windows Vista General Discussion 3 14th Jan 2009 06:25 AM
Windows update error 80070103 - Beta 2 Vista NVIDIA Driver Update =?Utf-8?B?RGVlcGFrIFNoZW5veQ==?= Windows Vista General Discussion 4 28th Feb 2007 02:26 PM
Windows Update Error number: 0x80072EE2 - Windows Update has encountered an error and cannot display the requested page Mart Windows XP General 1 22nd Sep 2004 11:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:30 PM.