Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 26th, 2004, 11:24 AM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default LoadDataRow causes DataRowState.Modified immediate

This one is causing me some problems. I am calling LoadDataRow(arPrimaryKey, False) and immediately, the DataRowState of the returned row is DataRowState.Modified. This is a problem because I don't want the DataAdapter to fire off an Update unnecessarily on a row when it doesn't need to do so.

Any help would be greatly appreciated.

***
By the way, my current workaround is to search for the DataRow by using DataTable.Find and if that returns nothing to Add the row. This seems to work but is less elegant.





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in loaddatarow rahulpokharna ADO.NET 3 June 18th, 2008 08:40 PM
The Controls collection cannot be modified... VerbatimBOT ASP.NET 2.0 Professional 2 October 22nd, 2007 09:43 AM
Getting record modified info kopyguy ASP.NET 2.0 Basics 0 September 27th, 2007 05:54 AM
cms: Last modified.... retroviz BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 February 24th, 2007 06:01 AM
last modified date on folders holdmykidney J2EE 0 May 23rd, 2005 07:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.