TDataSet.State equivalent in C#

  • Thread starter Thread starter Benj Nunez
  • Start date Start date
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
 
Hi Benj,

I'm not familiar with the TDataSet, but you might be looking for
DataSet.HasChanges()
DataSet.HasChanges(DataRowState)
 
Hi,

I'm familiar with Delphi and I don't think there's an equivalent in
DataSet or DataTable. Beware that a TDataSet actually "maps" to a
DataTable in .NET, so don't forget to look for properties there (I'm
always making that mistake :-))

The question here is; what are we doing with State? I remember
constantly checking it in a previous project a long time ago. The
TDataSet had to be in a certain mode if you wanted to do things or it
would get angry with you.. The .NET dataset behaviour is not modal
afaik...

Why would you like to have state in your case? Maybe we can figure out
how to do it in .NET.

Kind regards,
Marc
 
Back
Top