Determine if dataset has changed

B

Benj Nunez

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
 
A

Alberto Poblacion

Benj Nunez said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top