PC Review


Reply
Thread Tools Rate Thread

Determine if dataset has changed

 
 
Benj Nunez
Guest
Posts: n/a
 
      7th Jan 2008
Hello experts,

I used to program in Delphi and used TDataSet.State to check on the
status of a database operation (Insert, Update, Delete, Browse). Now
that I'm into C#, I would like to know if there is a property or class
that exists and has this kind of behavior.

Many thanks in advance.


Cheers,

Benj
 
Reply With Quote
 
 
 
 
Alberto Poblacion
Guest
Posts: n/a
 
      7th Jan 2008
"Benj Nunez" <(E-Mail Removed)> wrote in message
news:74758bdd-3ebb-43a3-97fd-(E-Mail Removed)...
> I used to program in Delphi and used TDataSet.State to check on the
> status of a database operation (Insert, Update, Delete, Browse). Now
> that I'm into C#, I would like to know if there is a property or class
> that exists and has this kind of behavior.


I'm not familiar with Delphi, but the DataSet has a collection of Tables,
and each DataTable has a collection of Rows, and each DataRow has a property
called RowState which tells you if it is Added, Deleted, Modified or
Unchanged. Is this what you wanted to find?


 
Reply With Quote
 
Peter Bromberg [C# MVP]
Guest
Posts: n/a
 
      7th Jan 2008
As Alberto indicated, in addition to the DataRow, DataTables support a series
of events you can subscribe to. Here's the url to the MSDN Documentation page
listing them:

http://207.46.199.254/en-us/library/system.data.datatable_events(VS.80).aspx



-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com


"Benj Nunez" wrote:

> Hello experts,
>
> I used to program in Delphi and used TDataSet.State to check on the
> status of a database operation (Insert, Update, Delete, Browse). Now
> that I'm into C#, I would like to know if there is a property or class
> that exists and has this kind of behavior.
>
> Many thanks in advance.
>
>
> Cheers,
>
> Benj
>

 
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
use vb to determine last cell changed jck.office@gmail.com Microsoft Excel Programming 10 8th Oct 2008 04:44 AM
Determine if the sheet has been changed Erik Wikström Microsoft Excel Programming 2 12th Dec 2007 03:00 PM
determine if a cell changed value =?Utf-8?B?RGF2ZTAx?= Microsoft Excel Worksheet Functions 0 8th Jul 2005 04:49 PM
How to determine that rows on server changed and dataset needs to be updated ? Grigol Avetikov Microsoft ADO .NET 2 26th Apr 2004 03:05 PM
Determine if a TextField has changed...? =?Utf-8?B?RGVuaXNl?= Microsoft VB .NET 3 25th Apr 2004 08:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:49 PM.