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
Morten Wennevik [C# MVP] - 07 Jan 2008 07:41 GMT
Hi Benj,
I'm not familiar with the TDataSet, but you might be looking for
DataSet.HasChanges()
DataSet.HasChanges(DataRowState)

Signature
Happy Coding!
Morten Wennevik [C# MVP]
> Hello experts,
>
[quoted text clipped - 8 lines]
>
> Benj
Marc Vangrieken - 07 Jan 2008 09:12 GMT
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
> Hello experts,
>
[quoted text clipped - 8 lines]
>
> Benj