PC Review


Reply
Thread Tools Rate Thread

Changing RowState

 
 
Phil Daley
Guest
Posts: n/a
 
      23rd Jul 2003
I have a dataset with a Parent/Child relationship on its 2 tables. I am
using a DataAdapter and the Update method to write changes to the database.

However, I have a problem when I get a concurrency error. I need to inform
the user of the problem and give them an option to discard changes or
overwrite. If the user selects overwrite, I need to delete all child records
(from the database) and then insert the child records from the dataset. I
have to delete first, just in case there are extra child records that are
not in the dataset.

However, if my dataset has modified child records, I now have to insert them
and not update them. How can I change the read-only rowstate property so
that all the modified records are now marked added so that the Update
command will use the insert command instead of the update command.?

Phil


 
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
Changing RowState manually Steven Nagy Microsoft C# .NET 0 7th Dec 2005 06:28 AM
BindingManagerBase Position property changing RowState Srikanth Microsoft Dot NET Framework Forms 0 22nd Jun 2005 02:21 AM
RowState not changing =?Utf-8?B?TkNaSU1N?= Microsoft ADO .NET 3 20th Nov 2004 08:20 AM
Changing DataRow Rowstate progamatically =?Utf-8?B?Q2h1Y2s=?= Microsoft ADO .NET 2 4th Mar 2004 06:17 PM
Changing dataset rowstate sahridhayan Microsoft ADO .NET 1 12th Jan 2004 01:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:16 AM.